上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页
摘要: http://www.cnblogs.com/fnng/p/3670789.html 阅读全文
posted @ 2017-07-18 16:21 xushukui 阅读(200) 评论(0) 推荐(0)
摘要: os.path.abspath(path) #返回绝对路径os.path.basename(path) #返回文件名os.path.commonprefix(list) #返回list(多个路径)中,所有path共有的最长的路径。os.path.dirname(path) #返回文件... 阅读全文
posted @ 2017-07-17 17:20 xushukui 阅读(161) 评论(0) 推荐(0)
摘要: http://www.chinaunix.net/old_jh/55/575710.html 阅读全文
posted @ 2017-07-17 11:00 xushukui 阅读(293) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/fnng/p/3565912.html 阅读全文
posted @ 2017-07-13 18:11 xushukui 阅读(190) 评论(0) 推荐(0)
摘要: match()函数只检测RE是不是在string的开始位置匹配,search()会扫描整个string查找匹配;也就是说match()只有在0位置匹配成功的话才有返回,如果不是开始位置匹配成功的话,match()就返回none。例如:print(re.match(‘super’, ‘... 阅读全文
posted @ 2017-07-11 17:05 xushukui 阅读(1658) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html http://www.cnblogs.com/dyfblog/p/5880728.html http://www.jb51.net/article/73342.htm http:/ 阅读全文
posted @ 2017-07-11 16:45 xushukui 阅读(145) 评论(0) 推荐(0)
摘要: 使用python的人都知道range()函数很方便,今天再用到他的时候发现了很多以前看到过但是忘记的细节。这里记录一下range(),复习下list的slide,最后分析一个好玩儿的冒泡程序。这里记录一下: range(1,5) #代表从1到5(不包含5) ... 阅读全文
posted @ 2017-07-08 10:06 xushukui 阅读(470) 评论(0) 推荐(0)
摘要: http://code.ziqiangxuetang.com/python/python-dictionary.html 阅读全文
posted @ 2017-07-06 19:24 xushukui 阅读(182) 评论(0) 推荐(0)
摘要: 第一步,安装pppoecof打开终端,输入命令sudo apt-get install pppoeconf 安装成功之后,开始手动配置。第二步,配置连接打开终端,输入命令pppoeconf 接下来会看到一系列配置信息,包括用户名、密码(宽带连接的用户名密码),配置好之后会有一些提示信... 阅读全文
posted @ 2017-07-06 15:19 xushukui 阅读(593) 评论(0) 推荐(0)
摘要: 头文件: import random1、生成一个随机浮点数,范围是0-1: print random.random()2、生成指定范围内的随机浮点数: print random.uniform(a,b)3、生成指定范围内的随机整数: print ra... 阅读全文
posted @ 2017-07-06 09:26 xushukui 阅读(2851) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 39 下一页