摘要: def parse(content): ram_dict={} key_map={ #转换成我们需要的名字 'Size': 'capacity', 'Locator': 'slot', 'Type': 'model', 'Speed': 'speed', 'Manufacturer'... 阅读全文
posted @ 2018-12-11 17:20 986428528 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Title 欢迎登录 {% csrf_token %} 姓名: 密码: ... 阅读全文
posted @ 2018-11-30 16:28 986428528 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-22 23:28 986428528 阅读(92) 评论(2) 推荐(0) 编辑
摘要: 一个类没有声明自己的元类,默认他的元类就是type,除了使用内置元类type, 我们也可以通过继承type来自定义元类,然后使用metaclass关键字参数为一个类指定元类 自定义元类可以控制类的产生过程,类的产生过程其实就是元类的调用过程 {'host': '127.0.0.1', 'port': 阅读全文
posted @ 2018-11-22 20:43 986428528 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 函数 描述int(x [,base ]) 将x转换为一个整数long(x [,base ]) 将x转换为一个长整数float(x ) 将x转换到一个浮点数complex(real [,imag ]) 创建一个复数str(x ) 将对象 x 转换为字符串repr(x ) 将对象 x 转换为表达式字符串 阅读全文
posted @ 2018-11-22 12:59 986428528 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <Thread(Thread-1, started 8568)>尝试第1次连接<Thread(Thread-1, started 8568)>尝试第2次连接<Thread(Thread-2, started 9144)>尝试第1次连接正在检查连接<Thread(Thread-1, started 8 阅读全文
posted @ 2018-11-21 22:34 986428528 阅读(157) 评论(0) 推荐(0) 编辑
摘要: # from threading import Thread,Lock,current_thread # import os ,time # def task(): # global n # print('%s is running'%current_thread().getName()) # temp=n # time.sleep(0.5) # n=te... 阅读全文
posted @ 2018-11-21 20:24 986428528 阅读(179) 评论(0) 推荐(0) 编辑
摘要: from threading import Thread import threading import time def say(name): time.sleep(5) print('%s say hello'%name) if __name__=='__main__': t=Thread(target=say,args=('wes',)) t.start()... 阅读全文
posted @ 2018-11-21 18:15 986428528 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Threads share the address space of the process that created it; processes have their own address space.1.线程共享创建它的进程的地址空间,进程,子进程有独立的地址空间 Threads have direct access to the data segment of its process; ... 阅读全文
posted @ 2018-11-20 21:28 986428528 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 4200 get https://www.baidu.com9392 get https://www.python.org11912 get https://www.openstack.org4200 get https://help.github.com/11828 parse https://w 阅读全文
posted @ 2018-11-20 17:29 986428528 阅读(125) 评论(0) 推荐(0) 编辑