fork download
  1. print('我会python编程了')
  2. print(12345)
  3. #输入你的名字
  4. name=input('输入你的姓名:')
  5. print('你的姓名是:'+name)
  6. age=int(input("输入你的年龄:"))
  7. print(f'你的年龄是{age}')
  8. #条件检查
  9. if age < 18:
  10. print('你还未成年')
  11. elif age >=18 and age<=25:
  12. print('还在上大学中。。努力学习专业知识')
  13. elif age>25 and age <=35:
  14. print('努力工作,积累工作经验。找个对像')
  15. elif age>35 and age<=45:
  16. print('干一番事业,锻炼身体')
  17. else:
  18. print('注意饮食。')
  19.  
  20.  
  21.  
Success #stdin #stdout 0.08s 14152KB
stdin
柳夏
46
stdout
我会python编程了
12345
输入你的姓名:你的姓名是:柳夏
输入你的年龄:你的年龄是46
注意饮食。