if __name__ == '__main__':
main()
else:
# module-specific initialization code if any
It its's called as a script, it will be run with the name __main__ and the controlling function, main, well be called. If it has been imported into an interactive session or another module, its name will be its filename.
Python program and module
標籤: python張貼者: kenywalker 於 凌晨1:18
訂閱:
張貼留言 (Atom)
Diseño e iconos por N.Design Studio | A Blogger por Blog and Web

0 意見:
張貼留言