梦想一步登天

导航

2019年10月7日 #

python--requests模块初识

摘要: requests,发送http请求(用python模拟浏览器浏览网页)requests.get("http://www.baidu.com") 示例: 1 import requests 2 response = requests.get("http://www.weather.com.cn/ada 阅读全文

posted @ 2019-10-07 22:52 梦想一步登天 阅读(314) 评论(0) 推荐(0) 编辑

python--字符串格式化

摘要: python的字符串格式化有两种方式:百分号方式、format方式。百分号方式相对来说比较老,而format方式则是比较先进的方式。 1)百分号格式 语法: %[(name)][flags][width].[precision]typecode name:--可选,用于选择指定的key flags: 阅读全文

posted @ 2019-10-07 00:11 梦想一步登天 阅读(1093) 评论(0) 推荐(0) 编辑