Python
quchen528
这个作者很懒,什么都没留下…
展开
-
【Python】
类型 类型 描述 int表示整数 人有多大胆,int多大产 float表示浮点数 类比C/C++中的double,不可直接用 == 比较 str表示字符串 row_str str补充 str取下标打印 可正可负(负数即从后往前数) str补充 [ i : j ]打印字符串从下标 i 到 j 前的元素,前闭后开,i j 为空默认从头或者到尾 str补充 [:::f...原创 2019-07-17 11:22:29 · 103 阅读 · 0 评论 -
【Python】Crawler简单实现
'''Implement a crawler program, grab the novel, save the novel content to a file''' import requests import bs4 import re import time # ButifulSoul4的缩写 # 1. 先构造一个 HTTP请求,把这个请求发送出去获取到响应 # 既能打开内容页,也能...原创 2019-07-22 17:07:27 · 343 阅读 · 0 评论