12 2015 档案

摘要:import binascii as Bs = 'abcde'h = B.b2a_hex(s) # 字符串转16进制 '6162636465'h = B.hexlify(s) # 作用同上s = B.a2b_hex(h) # 16进制转字符串 'abcde's = B.unhe... 阅读全文
posted @ 2015-12-30 11:08 LarryKnight 阅读(11775) 评论(0) 推荐(0)
摘要:源码文件为utf-8格式 CODEC='utf-8';VS在“高级保存选项”中选择“UTF-8 65001”input(u'中文');print(u'中文') 阅读全文
posted @ 2015-12-29 15:57 LarryKnight 阅读(191) 评论(0) 推荐(0)
摘要:import osfrom subprocess import Popen, PIPEres = os.popen('xx.exe E:\\test\\file1 E:\\test\\file2')print res.read()ps = Popen("xx.exe E:\\test\\file1 ... 阅读全文
posted @ 2015-12-29 15:44 LarryKnight 阅读(368) 评论(0) 推荐(0)
摘要:项目属性(Alt+F7),再点常规,常规中有个平台工作集,把V120改成V110或者v100,然后就能正常运行了。 阅读全文
posted @ 2015-12-07 23:21 LarryKnight 阅读(20917) 评论(0) 推荐(0)