gpt4 book ai didi

python - 简单的 python 代码不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 14:50:07 25 4
gpt4 key购买 nike

<分区>

以下代码无效:

person = input('Enter your name: ') 
print('Hello', person)

而不是打印 Hello <name>它给了我以下追溯:

Traceback (most recent call last):
File "C:/Users/123/Desktop/123.py", line 1, in <module>
person = input('Enter your name: ')
File "<string>", line 1, in <module>
NameError: name 'd' is not defined

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com