Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 简单:如何在 3.1 中使用 Raw_input
在旧式中,我可以使用此功能输入数据
raw_input 现在是input每个http://docs.python.org/dev/py3k/whatsnew/3.0.html
input
raw_input已重命名为input. 删除了输入input的2.x 。eval
raw_input
eval
您应该改用它,它使用2.xinput()的行为。raw_input()
input()
raw_input()
在 Python 3 中,您使用输入函数