os.read
#-*-coding:utf-8-*-
__author__ = "logan.xu"
import os
cmd_res=os.popen("ls").read()
print("---->",cmd_res)
os.mkdir('new_dir2')
>>>>>>>>>>>>>>>>>>>>>>
----> 2018.zip
First_Project
First_project.py
__pycache__
configparser生成模块写.py
configparser读.py
cs play.py
day.py
day1.py
deconator7.py
decorator.py
decorator1.py
decorator3.py
decorator4.py
decorator7.py
dedecorator5.py
encode2.py
example.ini
file_op.py
file_op1.py
file_open.py
fileupdate.py
func-biancheng.py
func_test2.py
func_test3.py
func_test4.py
func_test5.py
func_test6.py
ha.conf