Python Script runnable Skeleton with main()

/ Published in: Python
Save to your folder(s)

A simple skeleton for python scripts with utf-8 encoding

Copy this code and paste it in your HTML
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  4. def main():
  5. pass
  7. if __name__ == '__main__':
  8. main()

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.