未解之谜
一口一个嘤嘤怪
这个作者很懒,什么都没留下…
展开
-
Python 之 global用法
Python 之 global用法 废话不说,直接看代码代码1# coding: utf-8age = 18def happy_birthday(): print "age {}, happy birthday ~".format(age)happy_birthday()print "your age is {}".format(age)输出结果:...原创 2018-07-28 17:09:30 · 14599 阅读 · 0 评论 -
Python Threading 多线程之 print
Python Threading 多线程之 print 在实例中,发现一个关于print的问题,尚未得到答案,记录下来,等待答案揭晓的一天 代码1实例代码:# coding:utf-8import threadingimport timedef action(arg): time.sleep(1) print '[sub thread name] {...原创 2018-07-28 10:57:47 · 5823 阅读 · 0 评论