使用idea运行python是出现了
C:\Software\python375\python.exe C:\Users\Fuly\.IntelliJIdea2019.1\config\plugins\python\helpers\pydev\pydevconsole.py --mode=client --port=55823
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['D:\\Study\\GitProject\\MySource\\MachineLearning', 'D:/Study/GitProject/MySource/MachineLearning'])
Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.30.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.30.0
Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)] on win32
runfile('D:/Study/GitProject/MySource/MachineLearning/eat_tf2_in_30_days/test1.py', wdir='D:/Study/GitProject/MySource/MachineLearning/eat_tf2_in_30_days')
1234567890
把 Execution下的
Run with Python console 取消掉
参考: https://blog.csdn.net/miracleoa/article/details/105775058