python input error file string line 1 in module

今天学习python遇到了如标题的这个错误,我记着之前看过一点用input去输入可以呀,但今天试了一下就不行了,于是乎在网上找资料,发现好多人都说使用raw_input就可以了,于是毅然截然的用了这个。

# -*- coding: utf-8 -*
print ("Hello, World!")
name = raw_input('请输入您的姓名:')
print("hello " + name + ",你好")

0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x