发布时间:2019-06-22 23:46:16编辑:auto阅读(1718)
[root@bogon ~]# cat file.py #/usr/bin/env python # coding: utf-8 ecs="efwefwffrfrer" ipaddrr="192.168.56.10" print type(ecs+ " "+ipaddrr+" has stopeed") def write_result(str): writeresult=file(r'/tmp/ecs.log','a+') str1=writeresult.write(str+'\n') writeresult.close() return str if __name__ == "__main__": write_result(ecs+ " "+ipaddrr+" has stopeed") [root@bogon ~]#
上一篇: selenium 2 + python
下一篇: python 自定义异常类学习
 51195
 50613
 41236
 38052
 32514
 29421
 28282
 23137
 23095
 21434
 1490°
 2203°
 1829°
 1756°
 2065°
 1816°
 2500°
 4197°
 4059°
 2896°