elif,pass

elif 相当于else if

 if n = '高级会员':
 	print('美女')
 elif n = '白金会员':
 	print('一线小明星')
 elif n = '钻石会员'
 	print('大明星')
 else:
 	print('城管')
 print('开始服务吧......')

pass代表’过,没内容’

if 1==1:
pass
else:
print(‘有内容’)

猜你喜欢

转载自blog.csdn.net/weixin_43760098/article/details/84335636