pyhon if else如何嵌套if else

2025-11-19 21:52:41

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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢