用户:
谛霖查看:3 回复:2 评论:3 创建时间:2023-06-03T19:25:46
【作品展示】

【作品介绍】
这是一个有问题的作品,它无法在海龟里运行,应该在命令行里运行,但是它在命令行里也报错了,哪位会用命令行的大佬帮我看看哪出问题了
【作品源代码】
from sys import argv
scipt, username = argv
prompt = ">"
print(f"hi {username},i am the {scipt} script.")
print("i'd like to ask you a few questions")
print(f"do you like me {username}?")
likes = input(prompt)
print(f"where do you live{username}?")
lives = input(prompt)
print("What kind of computer do you have")
computer = imput(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} computer.Nice.
""")
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn