添加一些python的snippets

This commit is contained in:
a770 2025-05-10 21:13:25 +08:00
parent 9db1b78216
commit 3c19610c4d
6 changed files with 71 additions and 28 deletions

18
snippets/python.json Normal file
View file

@ -0,0 +1,18 @@
{
"pri": {
"prefix": "pri",
"body": [
"print(${0})"
],
"description": "print()"
},
"main": {
"prefix": "main",
"body": [
"if __name__ == '__main__':",
"\t${0}"
],
"description": "if main"
}
}