摘要:
文件处理 1、读取文件 f = file('/etc/passwd','r') > Python 3.x 里面没有file,统一用open for line in f.readlines(): line = line.strip('\n').split(':') print line 结果: ['r 阅读全文
posted @ 2017-05-19 21:55
SpeicalLife
阅读(267)
评论(0)
推荐(0)
摘要:
1 #!/usr/bin/env python 2 # _*_ coding:UTF-8 _*_ 3 # __auth__: Dalhhin 4 # Python 3.5.2,Pycharm 2016.3.2 5 # 2017/05/15 6 7 import sys,os 8 9 def where(dbfile,where_list): #条件是一个... 阅读全文
posted @ 2017-05-19 21:43
SpeicalLife
阅读(535)
评论(0)
推荐(1)

浙公网安备 33010602011771号