python语法 print "%s" % (variable)咋么输出? 初学PYTHON2天,请知道的朋友给回答一下,多谢!
name=raw_input("Whatisyourname?")quest=raw_input("Whatisyourquest?")color=raw_input("...
name = raw_input("What is your name?")quest = raw_input("What is your quest?")color = raw_input("What is your favorite color?")
print "Ah, so your name is ___, your quest is ___, \and your favorite color is ___." ___ (name, quest, color) 展开
print "Ah, so your name is ___, your quest is ___, \and your favorite color is ___." ___ (name, quest, color) 展开
2013-12-22
展开全部
#这段代码只能用于解释器name = raw_input("What is your name?")quest = raw_input("What is your quest?")color = raw_input("What is your favorite color?") print "Ah,so your name is %s, your quest is %s, \and your favorite color is %s." %(name, quest, color)#所有问题都只能输入字符串
推荐于2018-05-04
展开全部
print "Ah, so your name is %s, your quest is %s, \and your favorite color is %s." % (name, quest, color)
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询