附图:
代码如下 :
# __author__ = ‘Key Jia’from sys import argvscript, user_name = argvprompt = ‘>’print “Hi %s, I’m the %s script.” % (user_name,script)print “I’d like to ask you a few questions.”print “Do you like me %s?” % user_namelikes = raw_input(prompt)print “where do you live %s?” % user_namelives = raw_input(prompt)print “what kind of computer do you have?”computer = raw_input(prompt)print “””Alright , so you said %r about liking me .You live in %r.Not sure where that is .And you have a %r computer.Nice.“”” % (likes,lives,computer)
原文地址:新手学Python 请大神指点错误, 感谢原作者分享。 转动心中的期待,血在澎湃,吃苦流汗算什么。