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

Sign up
Appearance settings
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit fd824f1

Browse files
authored
Merge pull request #19 from RohanAnandPandit/master
Code snippets for do-while loop and lambda functions. Thanks
2 parents a5291c0 + c2631eb commit fd824f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎snippets/base.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@
121121
"body": "while ${1:condition}:\n\t${2:pass}0ドル",
122122
"description" : "Code snippet to create a while loop structure."
123123
},
124+
"dowhile": {
125+
"prefix": "dowhile",
126+
"body": "do = True\nwhile do or ${2:condition}:\n\tdo = False\n\t${1:body}0ドル",
127+
"description" : "Code snippet to create a do-while loop structure."
128+
},
124129
"try:except:": {
125130
"prefix": "try",
126131
"body": "try:\n\t${1:pass}\nexcept ${2:Exception} as ${3:e}:\n\t${4:raise 3ドル}0ドル",
@@ -155,5 +160,10 @@
155160
"prefix": "ifmain",
156161
"body": "if __name__ == \"__main__\":\n\t${1:main()}0ドル",
157162
"description" : "Create implicitly all the code at the top level using the __name__ special variable."
163+
},
164+
"lambda": {
165+
"prefix": "lam",
166+
"body": "lambda ${1:args}: ${2:expr}",
167+
"description": "Create template for lambda function"
158168
}
159169
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /