码迷,mamicode.com
首页 > 其他好文 > 详细

读取用户输入

时间:2019-01-08 22:52:01      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:hat   NPU   输入   用户   input   where   HERE   home   用户输入   

name = input("what is your name?")

print("Hello",name)

name = input("what is your name?")

age = input("how old are you?")

hometown = input("where is your hometown?")

print ("Hello",name "you are", age, "years old,you cam from",hometown)

读取用户输入

标签:hat   NPU   输入   用户   input   where   HERE   home   用户输入   

原文地址:https://www.cnblogs.com/mous/p/10241799.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!