笨办法学python 习题14 优化过 遇到问题的请看

Posted hl77961

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了笨办法学python 习题14 优化过 遇到问题的请看相关的知识,希望对你有一定的参考价值。


print " what‘s you name?"
user_name = raw_input(‘>‘)

from sys import argv
script, = argv

prompt = ‘>‘

 

 

 


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_name)
likes = raw_input(prompt)

print " where do you live %s?"%(user_name)
lives = raw_input(prompt)

print " what kind of computer do you have?"
computer = raw_input(prompt)

print ‘‘‘
Alright,you say ‘%r‘ about liking me.
you live in ‘%r‘.Not sure where that is.
And you have a ‘%r‘ computer. Nice!
‘‘‘ %(likes,lives,computer)













以上是关于笨办法学python 习题14 优化过 遇到问题的请看的主要内容,如果未能解决你的问题,请参考以下文章

笨办法学 Python(第三版)习题 14: 提示和传递

笨办法学Python(十四)

笨办法学Python

笨办法学Python(三十九)

笨办法学python习题7

笨办法学 Python (Learn Python The Hard Way)