diff options
| author | jdhao <jdhao@hotmail.com> | 2019-12-05 10:40:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-05 10:40:29 +0800 |
| commit | 31f88c82cff586a722e43104f6950751264d98b5 (patch) | |
| tree | e5ad8ec7cf46b4b35e919471b47521719cbd8e64 /my_snippets/python.snippets | |
| parent | d593f1fe2c8cd00e2cdd8054910c7e5ae95012f3 (diff) | |
Add snippet for Python
Diffstat (limited to 'my_snippets/python.snippets')
| -rw-r--r-- | my_snippets/python.snippets | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/my_snippets/python.snippets b/my_snippets/python.snippets index 614db46..2d146ec 100644 --- a/my_snippets/python.snippets +++ b/my_snippets/python.snippets @@ -16,3 +16,12 @@ endsnippet snippet impa "import FOO as BAR" b import ${1:FOO} as ${2:BAR} endsnippet + +snippet main "Main function boilerplate" b +def main(): + $0 + + +if __name__ == "__main__": + main() +endsnippet |
