|
|
from sys import argv
script, user_name = argv
prompt '> '
print(f"Hi {user_name}, I'm the {script} script.")
print("I'd like to ask you a few questions.")
print(f"Do you like me {user_name}?")
likes = input(prompt)
print(f"Where do you live {user_name}?")
lives = input(prompt)
print("What kind of computer do you have?")
computer = input(prompt)
print(f"""
Alright, so you said {likes} about liking me.
You live in {lives}. Not sure where that is.
And you have a {computer}
@fishc
以上的代码 ,运行后却提示如下的错误 咋搞,
PS C:\Users\Administrator\lpthw> python ex14.py 李四
File "C:\Users\Administrator\lpthw\ex14.py", line 23
omputer} 电脑。漂亮。""")
^
SyntaxError: unmatched '}'
PS C:\Users\Administrator\lpthw>
|
|