1.1 迭代器: 1.1.1 什么是迭代: while True: print(' >') l=['a','b','c'] count=0 while count < len(l): print(l[count]) count+=1 1.1.2 为什么要有迭代器? 1.1.3 可迭代的对象(下列都是 ...
分类:
编程语言 时间:
2018-01-01 16:51:12
阅读次数:
150
Python3.x:os.listdir和os.walk(获取路径方法)的区别 1,os.listdir 使用情况:在一个目录下面只有文件,没有文件夹,这个时候可以使用os.listdir; 例如:d:\listdir文件夹下有三个文件(text1.txt、test2.txt、test3.txt), ...
分类:
编程语言 时间:
2017-12-30 23:36:01
阅读次数:
195
介绍 优点 缺点 使用场景 入门案例: UML图解: 代码: TravelStrategy Walk Drive Plane Person Main ...
分类:
其他好文 时间:
2017-12-30 12:12:35
阅读次数:
102
import osimport fnmatchdef is_file_match(filename, patterns): for pattern in patterns: if fnmatch.fnmatch(filename, pattern): return True return False ...
分类:
编程语言 时间:
2017-12-27 15:38:05
阅读次数:
116
同步自我的知乎专栏文章:https://zhuanlan.zhihu.com/p/32135185 从Slerp说起 ICLR'2017的投稿里,有一篇很有意思但被拒掉的投稿《Sampling Generative Networks》 by Tom White。文章比较松散地讲了一些在latent ...
分类:
其他好文 时间:
2017-12-26 21:56:57
阅读次数:
463
Watchcow Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 8537 Accepted: 3715 Special Judge Description Bessie's been appointed the new watc ...
分类:
其他好文 时间:
2017-12-23 17:19:05
阅读次数:
202
直接上代码吧,之前的配置直接查看angular的前几篇文章。 后台TS代码: 前台代码: 。。。。。。。。angular4.3 httpclient end..... 转自:http://www.cnblogs.com/cxd1008/p/7717037.html ...
分类:
Web程序 时间:
2017-12-17 22:27:24
阅读次数:
340
https://www.cnblogs.com/strongYaYa/p/7200357.html os 模块下有两个函数: os.walk() os.listdir() 幸运之神的降临,往往只是因为你多看了一眼,多想了一下,多走了一步。 ...
分类:
编程语言 时间:
2017-12-17 17:04:05
阅读次数:
257
【Python压缩文件夹】导入“zipfile”模块 【python压缩文件】导入“zipfile”模块 ...
分类:
编程语言 时间:
2017-12-13 20:11:47
阅读次数:
204
I don't think this is a hard problem. It is easy to figure out the walk pattern. Anyway...Walk patterns: If out of bottom border (row >= m) then row = ...
分类:
其他好文 时间:
2017-12-13 02:02:38
阅读次数:
157