aboutsummaryrefslogtreecommitdiff
path: root/my_snippets/python.snippets
blob: 0f19ba6d79b99de6bd672d14323a85fb042031be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
snippet head "Python source file header" b
"""
Description: $1
Author: Jie-dong Hao
Created: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
"""
$0
endsnippet

snippet print "Print value of some variable"
print("$1".format($2))
$0
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