python中print不出来

img


各位老哥麻烦帮忙看看这个,为什么print不出来Hello的那句呢?

img


是照着这个书上打的 麻烦各位老哥赐教

你的输入有问题,输入要按照下面的步骤
1,运行
2,键盘输入eric
3,按下enter键
即可看到输出

img

你没发现Eric是控制台输入的吗??

img

你加个等于号试试

{name=}

你在运行之后在那个下面在回车一下会出来


prompt = "If you tell us who you are, we can personalized the message you see,"
prompt +="\nWhat is your first name? eric"
name= input(prompt)
print("hello,{name}!")

hello前面多了一个f;
[如有帮助,恭请采纳】