from threading import Thread from multiprocessing import Process def f1(): name = input('请输入名字') #EOFError: EOF when reading a line # print(name) # if __name__ == '__main__': # input('主进程输入') # p = Process(target=f1,) # p.start() # # print('主进程结束') #
python2和python3的input是不同的 python3的input 对于python3,只有input,官方文档里是这样描述的 def input(*args, **kwargs): # real signature unknown """ Read a string from standard input. The trailing newline is stripped. The prompt string, if given, is printed to s
Python 2.3.4 (#1, Feb 2 2005, 11:44:13) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> user=raw_input("please input:&quo
[问题] 在折腾: [已解决]Sublime Text 2中运行Python程序出错:The system cannot find the file specified 的过程中,虽然解决了找不到python.exe的问题,但是又出现下面这个错误: Demo print in Sublime Text 2Traceback (most recent call last): Now in sublime text 2, please input parameter: File "D:\tmp\