摘要: python3与p2的区别。尽量用p3,P2已经停止支持了。 python是一门解释型、动态强类型定义语言。 优点: 入门容易、 开发效率高(库丰富)、高级语言、可移植、可扩展、可嵌入 缺点 1、相比其他编译型语言慢,但是可以接受、2、代码无法加密、3、线程无法利用多cpu问题(可以变通解决) 文件 阅读全文
posted @ 2017-05-24 16:10 jason_dd 阅读(180) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- # Author: Jason Wang import sys retry_limit = 3 retry_count = 0 account_file = 'accounts.txt' lock_file = 'account_lock.txt' global userName while retry_count < retry_lim... 阅读全文
posted @ 2017-05-24 15:54 jason_dd 阅读(156) 评论(0) 推荐(0)
摘要: 字典、列表、循环、enumerate函数 1 # -*- coding: utf-8 -*- 2 # Author: Jason Wang 3 4 # 数据字典定义 5 # 最底层用列表;其他各层是字典的嵌套, 共三层字典嵌套 6 7 dic = \ 8 { 9 "华南": 10 { 11 ... 阅读全文
posted @ 2017-05-22 10:06 jason_dd 阅读(415) 评论(0) 推荐(0)