Add Python main snippet
This commit is contained in:
12
snippets/python.snippets
Normal file
12
snippets/python.snippets
Normal file
@@ -0,0 +1,12 @@
|
||||
# Python SnipMate snippets
|
||||
|
||||
snippet main
|
||||
def main():
|
||||
${0:pass}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
exit(130)
|
||||
Reference in New Issue
Block a user