Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit affd928

Browse filesBrowse files
committed
add trye,tryf, tryl,whl
1 parent 1a86fee commit affd928
Copy full SHA for affd928

File tree

Expand file treeCollapse file tree

1 file changed

+42
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+42
-0
lines changed

‎snippets/snippets.code-snippets

Copy file name to clipboardExpand all lines: snippets/snippets.code-snippets
+42Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,47 @@
178178
"\tpass$0"
179179
],
180180
"description": "python open file by with statement"
181+
},
182+
"try except":{
183+
"prefix": "trye",
184+
"body": [
185+
"try:",
186+
"\t${1:pass}",
187+
"except ${2:Exception}:",
188+
"\t${3:pass}"
189+
],
190+
"description": "python try except statement"
191+
},
192+
"try except finally":{
193+
"prefix": "tryf",
194+
"body": [
195+
"try:",
196+
"\t${1:pass}",
197+
"except ${2:Exception}:",
198+
"\t${3:pass}",
199+
"finally:",
200+
"\t${4:pass}"
201+
],
202+
"description": "python try except finally statement"
203+
},
204+
"try except else":{
205+
"prefix": "tryl",
206+
"body": [
207+
"try:",
208+
"\t${1:pass}",
209+
"except ${2:Exception}:",
210+
"\t${3:pass}",
211+
"else:",
212+
"\t${4:pass}"
213+
],
214+
"description": "python try except else statement"
215+
},
216+
"while loop":{
217+
"prefix": "whl",
218+
"body": [
219+
"while ${1:}:",
220+
"\tpass$0"
221+
],
222+
"description": "python while loop statement"
181223
}
182224
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.