![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
宫阙潮海隔
学生党,用来记录自己的学习心路历程。
展开
-
Requests库入门
Requests库的安装 pip install requests -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com Requests库的七个主要方法 方法 说明 requests.request() 构造一个请求,支撑以下各方法的基础方法 requests.get() 获取HTML网页的主要方法,对...原创 2019-11-16 23:07:57 · 120 阅读 · 0 评论 -
python-csv二维操作
# -*- coding: utf-8 -*- """ Created on Fri Nov 15 19:47:57 2019 @author: 宫阙潮海隔 """ import csv data2D=[[90,98,87], [70,89,92], [95,78,81], [98,90,95], [65,72,70]] with...原创 2019-11-15 21:31:49 · 261 阅读 · 0 评论 -
python列表,元组,字典的操作
# -*- coding: utf-8 -*- """ Created on Wed Nov 13 12:36:33 2019 元组的操作 @author: 宫阙潮海隔 """ t=tuple([1,'one','--'])#使用tuple方法根据列表创建元组对象 print('t的值为:',t) print('t的第一个元素和最后一个元素的值分别为:',t[0],t[-1]) print('t...原创 2019-11-13 16:06:22 · 160 阅读 · 0 评论