![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Coder.Z
这个作者很懒,什么都没留下…
展开
-
200行python实现一个迷宫
代码如下:#coding=utf-8import random, sys, timefrom Tkinter import * def timing(out_prefix, func, *args, **kwargs): print("%s:timing start..."%(out_prefix)) t1 = time.time() r = func(*args, **...原创 2019-03-06 14:55:51 · 981 阅读 · 2 评论 -
python 各种遍历方式性能比较
代码:def iterrange1(f, c): while f <= c: yield f f += 1class iterrange2: def __init__(self, f, c): self.f, self.c = f, c def __iter__(self): return self def next(se...原创 2019-08-28 10:35:14 · 1937 阅读 · 0 评论