![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 82
yhjyumi
这个作者很懒,什么都没留下…
展开
-
python调用浏览器,实现刷网页小程序
http://www.pythontab.com/html/2014/pythonhexinbiancheng_0529/792.htmlpython 打开浏览器,可以做简单的刷网页的小程序 and 其他有想象力的程序。不过仅供学习,勿用非法用途。python的webbrowser模块支持对python 打开浏览器,可以做简单的刷网页的小程序 and 其他有想象力的程序。不转载 2015-01-24 21:02:38 · 1789 阅读 · 0 评论 -
python 中readline 和readlines的区别
http://www.pythontab.com/html/2014/pythonhexinbiancheng_0904/865.html1 readline 场景f0=file("readline txt",r)whiletrueforlineinf0 readline()ifnotline:breakpass dosomethingreadline 的用法,速度是fil1.re转载 2015-01-24 20:23:36 · 907 阅读 · 0 评论 -
注意for循环中变量的作用域
http://www.pythontab.com/html/2014/pythonhexinbiancheng_1113/908.htmlforeincollections:pass在for 循环里, 最后一个对象e一直存在在上下文中。就是在循环外面,接下来对e的引用仍然有效。这里有个问题容易for e in collections: pass转载 2015-01-24 20:39:12 · 830 阅读 · 0 评论