摘要: https://blog.csdn.net/zhanghuiqi205/article/details/80332729 检查代码可读性和可维护性: 如果代码的可读性强,那么维护起来也就方便很多;一个好的代码规范和编码风格会节省大家对代码的理解时间,减少维护成本;虽然我们有编程规范检查工具,但有些内 阅读全文
posted @ 2018-10-31 19:46 Ian_learning 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 最最关键的一句话,将文件的操作除了使用re模块之外,还要结合字符串的处理!!! 尤其是字符串的处理会更加地方便。 比如: string.capitalize() 把字符串的第一个字符大写 string.center(width) 返回一个原字符串居中,并使用空格填充至长度 width 的新字符串 s 阅读全文
posted @ 2018-08-19 23:08 Ian_learning 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 真实使用的时候 1.需要考虑判断添加layer的位置条件。 2.需要加入读取标准文件,可以方便一次性多加数个layer。 3. streamlayer,techdisplay等等其他的文件需要另外加入。 4.最好加入一个备份模块,防止出现意外情况; 5.加入使用说明; 6.display 文件是需要 阅读全文
posted @ 2018-07-15 17:27 Ian_learning 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1 '''最好让k的值与list的元素数量n差不多,如果是n的幂的话就不合适了''' 2 3 4 def init_part(k,out_list): 5 #k is the max int of out_list.Value in out_list is larger than >= 0. 6 Assist_list = [] 7 Assist_lis... 阅读全文
posted @ 2018-04-10 17:45 Ian_learning 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-10 14:40 Ian_learning 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 非常简单的算法。 阅读全文
posted @ 2018-04-09 21:06 Ian_learning 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-07 17:47 Ian_learning 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 基本的多进程的使用: 1 from multiprocessing import Process 2 import threading 3 import os 4 5 6 def info(title): 7 print(title) 8 print('module name:', __name__ 阅读全文
posted @ 2018-03-22 22:03 Ian_learning 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 进程的概念: An executing instance of a program is called a process. Each process provides the resources needed to execute a program. A process has a virtua 阅读全文
posted @ 2018-03-22 15:35 Ian_learning 阅读(203) 评论(0) 推荐(0) 编辑
摘要: socketserver模块就是socket模块的封装。 The socketserver module simplifies the task of writing network servers. socketserver一共有这么几种类型 1 class socketserver.TCPSer 阅读全文
posted @ 2018-02-23 15:45 Ian_learning 阅读(238) 评论(0) 推荐(0) 编辑