python 编写自动化小工具
Python split()
python数据类型之间的转换 str(demo)
python换行写入文件
!/usr/bin/env python
ecoding=utf-8
f=open(r"D:\opsdev\olduser\oldused.txt","a+")
newline=raw_input('input a string:')
f.writelines(newline+"\n")
f.close()
python写入文件自动换行问题
def write_result(str):
writeresult=file(r'D:\eclipse4.4.1 script\my_selenium\model\test_result.log','a+')
str1=writeresult.write(str+'\n')
writeresult.close()
return str