- 博客(3)
- 收藏
- 关注
原创 利用进程进行文件复制
import osimport multiprocessingdef copy_file(q, file_name, old_folder_name, new_folder_name): """完成文件的复制""" # 判断该路径下的名字是否是文件类型 if os.path.isfile(old_folder_name + "/" + file_name): ...
2019-04-10 20:53:37
362
原创 字典排序
import heapqportfolio = [ {'name': 'IBM', 'shares': 100, 'price': 91.1}, {'name': 'AAPL', 'shares': 50, 'price': 543.22}, {'name': 'FB', 'shares': 200, 'price': 21.09}, ...
2019-03-30 17:14:17
437
原创 python中创建单链表
单链表class Node(object):“”“结点类”""def __init__(self, item): self.item = item self.next = Noneclass SingleLinkList(object):“”“单链表”""def __init__(self, node=None, *args, **kwargs): if n...
2019-03-29 13:46:49
15204
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人