
Python
lakeheart879
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
BeautifulSoup 安装及其使用
BeautifulSoup 安装及其使用 BeautifulSoup 是个好东东。 官网见这里: http://www.crummy.com/software/BeautifulSoup/ 下载地址见这里:http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/ ,附件有4.1.2的安装源码 文档见这里: http://w转载 2017-08-18 19:29:03 · 1468 阅读 · 0 评论 -
Python 字符串操作(string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换)
一、去空格及特殊符号 s.strip().lstrip().rstrip(',') 二、复制字符串 #strcpy(sStr1,sStr2) sStr1 = 'strcpy' sStr2 = sStr1 sStr1 = 'strcpy2' print(sStr2) 三、连接字符串 #strcat(sStr1,sStr2) sStr1 = 'strcat' sStr2 = 'app原创 2017-09-13 13:23:48 · 466 阅读 · 0 评论 -
BeautifulSoup CSS 选择器
CSS3 选择器 在 CSS 中,选择器是一种模式,用于选择需要添加样式的元素。 "CSS" 列指示该属性是在哪个 CSS 版本中定义的。(CSS1、CSS2 还是 CSS3。) 选择器 例子 例子描述 CSS .class .intro 选择 class="intro" 的所有元素。 1 #id原创 2017-09-15 16:20:45 · 1277 阅读 · 0 评论 -
ubuntu python2.7 tab补全
accepted I may have found a way to do it. Create a file .pythonrc # ~/.pythonrc # enable syntax completion try: import readline except ImportError: print("Module readline not avai原创 2017-08-30 12:55:30 · 238 阅读 · 0 评论 -
Python3中map函数的问题
Python3中map函数 在Python2中map函数会返回一个list列表,如代码: >>> def f(x, y): return (x, y) >>> l1 = [ 0, 1, 2, 3, 4, 5, 6 ] >>> l2 = [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu',...转载 2018-09-25 22:16:33 · 477 阅读 · 0 评论