Esempio n. 1
0
import p71_byunsu as p71

print(p71.aaa)
print(p71.square(10))

print("============")

aaa = 3

print(p71.aaa)
print(p71.square(10))

from p71_byunsu import aaa, square

print("============")

aaa = 3

print(p71.aaa)
print(p71.square(10))

Esempio n. 2
0
import p71_byunsu as p71

print(p71.aaa)
print(p71.square(10))

print("===============")

from p71_byunsu import aaa, square

aaa = 3

print(aaa)
print(square(10))  # 지역 변수로는 안바뀐다
Esempio n. 3
0
import p71_byunsu as p71

print(p71.aaa)  #2
print(p71.square(10))  #**n

# 2
# 1024

print("===============================")

from p71_byunsu import aaa, square

aaa = 3

print(aaa)  #2
print(square(10))  #**n

# 3
# 1024