Files
python/pythonProject/流程语句/match/模式匹配.py
T
2025-12-04 13:46:06 +08:00

10 lines
202 B
Python

scope=input("请输入成绩等级")
match scope:
case 'A':
print("一级")
case 'B':
print("二级")
case "C":
print("三级")
case "D":
print("四级")