49 字
约 9 秒
8
code4-4-match
2026-09-26
无标签

x = 'hello'
match x:
case 'hello':
print('正确')
case 'helo':
print('少写了一个l')
case 'hiio':
print('字母l拼错了')
case _:
print('拼写不对,请仔细检查')
if x==1:
print(111)
elif x==2:
print(222)
elif x==4:
print(444)
else:
print('other')

code4-4-match
https://www.clxhxhhr.top/posts/4475/
作者
clxstart
发布于
2026-09-26
许可协议
CC BY-NC-SA 4.0
评论
0 条
还没有评论,先写一条吧。