day02_07 创建新目录
# Author:Adminone
#import login
import sys
print(sys.path) #打印环境变量
print(sys.argv) #打印脚本绝对路径['E:/python S14/day1/sys_mod.py']
print(sys.argv[2])
'''
'''
import os
#cmd_res = os.system("dir") #查看当前目录的文件,执行完返回一个状态码'0'
cmd_res = os.popen("dir").read()
print("-->",cmd_res)
os.mkdir("new_dir")
msg = "我爱北京天安门"
print(msg)
print(msg.encode(encoding="utf-8"))
print(msg.encode(encoding="utf-8").decode(encoding="utf-8"))