let charA:Character = "a"
switch charA
{
case "A":
print("The letter a")
break
case "b":
print("The letter A")
break
case "a":
print("b = \("The letter B")")
break
default: break
}
时间: 2024-10-15 20:21:31
let charA:Character = "a"
switch charA
{
case "A":
print("The letter a")
break
case "b":
print("The letter A")
break
case "a":
print("b = \("The letter B")")
break
default: break
}