机器学习之python基础5

“”"
火车进站携带刀子,要写if必须成对出现
“”"
knife_length=30;
has_ticket=True;
if has_ticket:
print(“上车”)
if knife_length>20:
print(“长度超过 %d 不能上车”%(knife_length-20))
else:
print(“下车”)

猜你喜欢

转载自blog.csdn.net/weixin_43247522/article/details/84503907