20240409 

Run Settings
LanguagePython
Language Version
Run Command
high2024Order=1 #global variable def f1(): print("i ame fro function 1") return def f3(): print("i am from function3") return def f2(high2024Order,h02): print(id(high2024Order)) #local variable a=5 if a==10: high2024Order() else: h02() print("888") return print(id(high2024Order)) f2(f1,f3) x, y, z = "Orange", "Banana", "Cherry" #Truple to truple print(x); print(y); print(z) print("\n") x= y= z = "Orange"#Truple to truple print(x); print(y); print(z) # closure打包 X=1 PY無private variable X = 1 def f1(): print(X) def f2(A1): X=2 print("hello") A1() f1() f2(f1) x={1,True,0,False,None} print(x)
Editor Settings
Theme
Key bindings
Full width
Lines