hello,world搞不出来啊啊啊啊啊啊啊啊
为啥不显示hello world呢
原因可能是因为某些设置,Python打印输出可能还在缓冲区,所以没有输出。
在Python2 中,可以这样做来强制Python的打印输出。
import sys
print 'hello, world'
sys.stdout.flush()
在Python3 (版本3):
print('hello, world', flush=True)
加括号print('hello world')
用个IDE编辑器(如PyCharm)吧,这样学实在太累
代码是正确的,但是可能你的电脑上没有配置Python解释器,Windows系统一般不自带,Linux系统一般自带的有
这个最基础问题。。。各种教程如下:
https://www.runoob.com/python3/python3-helloworld.html
https://www.cnblogs.com/jhxxb/p/10398066.html
https://www.cnblogs.com/tssc/p/9408245.html
https://jingyan.baidu.com/article/d8072ac48cce31ec95cefd2a.html