#-------------------------------------------------------------------------------
# Name: ex_14.py
# Purpose: 提示和传递
#
# Author: huanghuan
#
# Created: 14-08-2013
# Copyright: (c) huanghuan 2013
# Licence: <your licence>
#-------------------------------------------------------------------------------
from sys import argv
# argv解包.
script, user_name = argv
# 作为raw_input()参数.输入提示.
#prompt = '> '
prompt = "> "
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'd like me to ask you a few questions."
# 1.prompt作输入提示.
print "do you like me %s?" % user_name
likes = raw_input(prompt)
# 2.
print "where do you live %s?" % user_name
lives = raw_input(prompt)
# 3.
print "what kind of PC do you have?"
pc = raw_input(prompt)
print """
so you said %r about liking me.
you live in %r. Not sure where that is.
and you have a %r PC. Nice.
""" % (likes,lives,pc)