摘要: 程序写完了,时间比较赶,两天客户端和服务器端都结束了,服务器端自动识别操作,具体是实现一个观察者去监控这个文件夹,进行写数据库,删除数据库操作,如果你们服务器端使用了watchdog 模块,请注意:当你上传的文件不断变大的时候,这个时候是重复写入数据库的,需要加上判断操作,切记 具体的程序,等我有时 阅读全文
posted @ 2018-07-24 14:57 五等码农 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 背景:同事需要,未进行代码类的编写 ,集成日志功能,获取电脑本地账户,GUI界面,压缩文件夹的功能 from tkinter import *from tkinter.filedialog import askdirectoryimport zipfileimport osfrom datetime 阅读全文
posted @ 2018-07-23 20:48 五等码农 阅读(207) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/7/18 14:43"from tkinter import *from PIL import Image,ImageTkimport tkinter.messageboximport osfrom multiprocessing import Processclass W... 阅读全文
posted @ 2018-07-19 17:23 五等码农 阅读(956) 评论(1) 推荐(0) 编辑
摘要: import datetimeimport timeclass PK(object): def __init__(self,name,attack=0.0,defence=0.0): self.name = name self.attack = attack self.defence = defen 阅读全文
posted @ 2018-07-12 14:44 五等码农 阅读(136) 评论(0) 推荐(0) 编辑
摘要: classmethod 修饰符对应的函数不需要实例化,不需要 self 参数,但第一个参数需要是表示自身类的 cls 参数,可以来调用类的属性,类的方法,实例化对象等。 输出: year : 2018month : 7day : 6year : 2018month : 0day : 0 这样子使用的 阅读全文
posted @ 2018-07-06 11:21 五等码农 阅读(468) 评论(0) 推荐(0) 编辑
摘要: BeginQuery info about Bob...End24 一些小知识:2:双核超线程 ht技术 1个核心虚拟出两个共享资源 ,window 10 里面可以限制核心的 阅读全文
posted @ 2018-07-03 11:58 五等码农 阅读(463) 评论(0) 推荐(0) 编辑
摘要: I can show Creturn value of B[<class '__main__.D'>, <class '__main__.B'>, <class '__main__.C'>, <class '__main__.A'>, <class 'object'>] 阅读全文
posted @ 2018-07-02 15:52 五等码农 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-22 19:33 五等码农 阅读(73) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/6/20 17:42"import threadingimport timeexitFlag = 10class myThread(threading.Thread): def __init__(self,threadID,name,counter): ... 阅读全文
posted @ 2018-06-20 18:04 五等码农 阅读(142) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/6/15 16:09"from random import choice,randintimport matplotlib.pyplot as pltclass PersonMovement(): def __init__(self,walk_nums = 10): ... 阅读全文
posted @ 2018-06-15 17:13 五等码农 阅读(3263) 评论(0) 推荐(0) 编辑