Posted in Python onJune 06, 2014
实现步骤:
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!
pycharm 使用心得(八)如何调用另一文件中的函数
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@