网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

pyhon if else如何嵌套if else

时间:2024-10-30 18:41:08

1、第一行代码输入age = 18

pyhon if else如何嵌套if else

2、第二行代码输入 name = 'TOM'

pyhon if else如何嵌套if else

3、第三行代码输入weight = 75.5

pyhon if else如何嵌套if else

4、第四行代码输入stu_id = 1

pyhon if else如何嵌套if else

5、第五行代码输入if money ==1: print('土豪请上车') if seat ==1: print('有空座,坐下了') else: print('没有空座,站着等......')else:print('朋友,没带钱,跟着跑,跑快点')

pyhon if else如何嵌套if else
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com