This commit is contained in:
2025-07-11 15:11:09 +08:00
parent dbe3662088
commit 5f959b129d
8 changed files with 1464 additions and 44 deletions

19
test.py Normal file
View File

@ -0,0 +1,19 @@
from typing import Optional
def main():
# privitive
# int, bool, float, string
a = 10
b = 20
def sum():
nonlocal a
a = 1
return a + b
print("a={};sum={};a={}".format(a, sum(), a))
if __name__ == "__main__":
main()