#将字符串转化成字典类型 account=admin,npassword123123’格式字符串转化成数组{}
import re
import self as self
str=‘account=admin,npassword=123123’
class Data():
def getData(self):
# 正则表达式
r=re.split(‘W+’,str)
return r;
python中读取csv文件:
python中获得对应文件或者目录的路径;
获得现在时间:
str=time.strftime(‘%Y-%m-%d %X’)



