Python3中Print未定义怎么处理
#!/usr/bin/envPython#coding=UTF-8name=input("what'syourname:")age=input("Howoldareyou...
#!/ usr/bin/env Python
# coding= UTF-8
name= input("what's your name:")
age= input("How old are you?")
Print("your name is:")+ name+("!")
Print(" you are ")+ age+(" years old.")
after_ten= int(age)+10
Print("you will be")+ str(after_ten)+ (" years old after ten years.") 展开
# coding= UTF-8
name= input("what's your name:")
age= input("How old are you?")
Print("your name is:")+ name+("!")
Print(" you are ")+ age+(" years old.")
after_ten= int(age)+10
Print("you will be")+ str(after_ten)+ (" years old after ten years.") 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询