python command line to run code written pycharm

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_42818402/article/details/100577392

In the path plus the current project path

In front plus

SYS Import
Import os
sys.path.append (os.path.abspath (os.getcwd () + "... / ... / ... / ..."))
into the module directory, execute python3 xx.py

Guess you like

Origin blog.csdn.net/weixin_42818402/article/details/100577392