猫史档案馆


【Python作品分享】练习【求助帖】

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


【作品展示】

center_image

 

【作品介绍】

这是一个有问题的作品,它无法在海龟里运行,应该在命令行里运行,但是它在命令行里也报错了,哪位会用命令行的大佬帮我看看哪出问题了

 

【作品源代码】

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


回复

上一页1 页 / 共 1下一页
𝙲ℴ𝗌𝔦𝒹ₑ𝑟𝙲ℴ𝗌𝔦𝒹ₑ𝑟

问题是什么?

点赞0


评论


谛霖谛霖

center_image

想爆脏了都,运行到一半又报错了

点赞0


评论