python
文章平均质量分 78
zxs_666
这个作者很懒,什么都没留下…
展开
-
Python中的可变对象与不可变对象
Python中的可变对象与不可变对象Python中的对象在Python中“万物皆对象”。 所有的Python对象都有三个特性:身份,类型和值。 - 身份:每个对象都有唯一的身份标识,可以认为是该对象的内存地址。可以通过内建函数 id()来得到。 - 类型:对象的类型决定了对象可以进行什么样的操作,保存什么样的值。可以通过内建函数type()来得到。 - 值:对象表示的原创 2017-07-22 17:21:21 · 191 阅读 · 0 评论 -
python 核心编程 18-4
from threading import Thread from thread1 import MyThread from time import clock result = [] time1 = 0 def find(file, start, number1, ob, n): try: for i in range(start, start+number1):原创 2017-08-20 15:54:58 · 230 阅读 · 0 评论