发布时间:2013-01-24 17:10:36
python 以逗号分割,忽略引号内的逗号加posix=True 和不加posix=True 有区别前两个是加和不加posix=True的对比,最后一个例子是以空格分割的语句的例子lex.quotes = '"' 去掉效果一样import shlexstr=shlex.shlex("ab,'cdsfd,sfsd',ewewq,5654",posix=True)str.whitespace=','str.whitesapce_s.........【阅读全文】
发布时间:2013-01-11 10:06:11
在日志中显示硬盘有坏扇区tail /var/log/messages Mar 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Currently unreadable (pending) sectors Mar 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Offline uncorrectable sectors dmesg中也有错误信息dmesg ide: failed opcode was: unknown hda: no DRQ after issuing WRITE ide0: ......【阅读全文】