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. else:
  14. print(熟了)
Success #stdin #stdout 0.08s 14136KB
stdin
李明
20
stdout
我会python编程了
12345
输入你的姓名:你的姓名是:李明
输入你的年龄:你的年龄是20
半熟