Add Python main snippet
This commit is contained in:
parent
09c785eee9
commit
e3d4651062
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)
|
Loading…
x
Reference in New Issue
Block a user