pycharm中名字怎么定義?
實現步驟: 1. PyCharm, IDE有個Project setting圖標,是給run圖標做配置的,配置run file為myfile.py 2. 代碼如下: # -------------------------------------- #! /usr/bin/python # File: myfile.py # Author: Michael Fan from make.py import do def main(): do() if __name__ == '__main__': main() # -------------------------------------- 3. 代碼如下: mic@ubt: ~$ ls > make.py myfile.py mic@ubt: ~$ ./myfile.py > Hello, world!