对话练习脚本

  

#!/root/.envs/env3/bin/python3
# coding=utf-8
name = input("What is your name?")
age = input("What is your age?")

print("Your name is:",name)
print("Your are " + age + "yeas old.")

after_ten = int(age) + 10
print("Your will be " + str(after_ten) + " yeas old after ten yeas.")

posted @ 2022-03-14 10:27  平安里  阅读(81)  评论(0编辑  收藏  举报