환경 변수의 사용

import m1
print(m1)

# import sys
# sys.path.append(r'D:\python \day06\ \part8\a')
#
# import m2
# print(m2)
#
# sys.path.append(r'D:\python \day06\ \part8\b\c')
# import m3
# print(m3)

import a.m2
print(a.m2)
import a.m2 as m2
print(m2)
from a import m2
print(m2)

from b.c import m3
print(m3)

import sys
# , : ,
# print(__file__)
# print(sys.path)
from part7.aa.bb import cc
print(cc)

다음으로 전송:https://www.cnblogs.com/qiangyuzhou/p/10788255.html

좋은 웹페이지 즐겨찾기