![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 50
小学生反弹
这个作者很懒,什么都没留下…
展开
-
python 类和实例
!/usr/bin/env python3-- coding: utf-8 --!/usr/bin/env python3-- coding: utf-8 --class Student(object): def init(self,name,score): self.name =name self.score = score def prin原创 2016-01-27 17:14:54 · 363 阅读 · 0 评论 -
python beautifulsoup简单用法
#!/usr/bin/env python3# -*- coding: utf-8 -*-from bs4 import BeautifulSoupimport rehtml_doc = """The Dormouse's storyThe Dormouse's storyOnce upon a time there were three little sisters; and原创 2016-02-24 15:54:25 · 334 阅读 · 0 评论 -
正则表达式的使用
2016-2-27常用符号#-*-coding:utf8-*-import re# from re import findall,search,Sprint('hello world')secret_code = 'feafefexxixx23fe23xxlovexxafeifvaxxyouxx32fe'a = 'xz123'b = re.findall('原创 2016-02-27 21:32:12 · 278 阅读 · 0 评论 -
Python3 zip,lambda,map,reduce的使用
使用Python进行数据处理的时候经常遇到一些Python独有的小函数,使用这些小函数 可以大大减少代码量。Python2中的使用方法与3有些不同,具体参见 这里写链接内容# -*- coding: utf-8 -*-"""Created on Wed Oct 26 11:51:32 2016@author: Jian"""import functoolsa = [1,2,3,4,5]原创 2016-10-26 20:40:42 · 1581 阅读 · 0 评论