游走的鱼

导航

2017年5月16日 #

python __name__ 和__main__的使用领悟

摘要: __name__和__main__的使用#hello.pydef sayHello(): str="hello" print(str);if __name__ == "__main__": print ('This is main of module "hello.py"') sayHello()这 阅读全文

posted @ 2017-05-16 11:24 游走的鱼 阅读(181) 评论(0) 推荐(0) 编辑