摘要: 1. 进程 - 进程间数据不共享 data_list = [] def task(arg): data_list.append(arg) print(data_list) def run(): for i in... 阅读全文
posted @ 2018-09-12 16:26 玩蛇少年7372 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 在脚本运行过程中有一个主线程,若在主线程中创建了子线程,当主线程结束时根据子线程daemon属性值的不同可能会发生下面的两种情况之一: 如果某个子线程的daemon属性为False,主线程结束时会检测该子线程是否结束,如果该子线程还在运行,则主线程会等待它完成后再退出; 如果某个子线程的daemon 阅读全文
posted @ 2018-09-11 17:32 玩蛇少年7372 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 99+99=198 阅读全文
posted @ 2018-09-10 15:41 玩蛇少年7372 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 2018年最常见的Python面试题&答案(上篇) 景略集智 已认证的官方帐号 景略集智 已认证的官方帐号 景略集智 已认证的官方帐号 景略集智 景略集智 景略集智 已认证的官方帐号 已认证的官方帐号 已认证的官方帐号 299 人赞了该文章 Python新手在谋求一份Python编程工作前,必须熟知 阅读全文
posted @ 2018-09-09 19:14 玩蛇少年7372 阅读(284) 评论(0) 推荐(0) 编辑
摘要: p2 和p3 的区别 -编码&字符串: 字符串: p2: unicode v = u'find the table' 本质上用unicode存储(万国码) (str/bytes) v = 'find the table' 本质用字节存储 py3: str v = 'find the table' 本 阅读全文
posted @ 2018-09-06 16:41 玩蛇少年7372 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 导入模块socket 主动创建 阅读全文
posted @ 2018-09-05 20:18 玩蛇少年7372 阅读(66) 评论(0) 推荐(0) 编辑
摘要: find the table 阅读全文
posted @ 2018-09-04 15:38 玩蛇少年7372 阅读(52) 评论(0) 推荐(0) 编辑
摘要: # class A(object):# pass## class B(A):# pass## class C(B):# pass## class D(object):# pass## class E(D,C):# pass## class F(object):# pass## class G(F): 阅读全文
posted @ 2018-09-03 16:36 玩蛇少年7372 阅读(83) 评论(0) 推荐(0) 编辑
摘要: ~(@^_^@)~ 阅读全文
posted @ 2018-09-02 09:45 玩蛇少年7372 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1,约束 class BaseMessage(object): def send(self,x1): raise NotImplementedError(".send() 必须被从新写入.") class Email(BaseMessage): def send(self,x1): #必须继承BaseMessage,然后其中必须编写send方法.用... 阅读全文
posted @ 2018-08-31 16:57 玩蛇少年7372 阅读(84) 评论(0) 推荐(0) 编辑