文件1:def SayHello(): print("你好,你好,我是sayhello")if __name__=='__main__': #文件被导入时,能够直接执行的代码不需要被执行 SayHello() print("小明开发的模块")文件2
# pcjimport 文件1print("-"*50)