摘要:
获取豆瓣https://movie.douban.com/top250的,第一页前25个电影名字 我的答案: import requests from bs4 import BeautifulSoup head={"user-agent": "Mozilla/5.0 (Windows NT 10.0 阅读全文
posted @ 2021-01-09 08:48
1+1=
阅读(159)
评论(0)
推荐(0)
摘要:
用requests 向 https://www.zhihu.com/explore 网站获取网页 我的答案: import requests head={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.3 阅读全文
posted @ 2021-01-09 08:45
1+1=
阅读(131)
评论(0)
推荐(0)
摘要:
安装navicat,新建school数据库,并建student(学号 int,姓名 Text,年龄 int)表,插入3个人,代码实现。 我的答案: import sqlite3 con=sqlite3.connect("D:\\sql\\SQL1\\test.db3") a=con.cursor() 阅读全文
posted @ 2021-01-09 08:43
1+1=
阅读(125)
评论(0)
推荐(0)
摘要:
使用selenium 访问biying.com并搜索 关键词“计算机” 我的答案: from selenium import webdriver web=webdriver.Chrome() web.get("https://cn.bing.com/") element=web.find_eleme 阅读全文
posted @ 2021-01-09 08:32
1+1=
阅读(123)
评论(0)
推荐(0)
摘要:
界面如下所示 我的答案: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 UI code generator 5.13.0 阅读全文
posted @ 2021-01-09 08:23
1+1=
阅读(126)
评论(0)
推荐(0)
摘要:
根据颜色代码: https://m.wang1314.com/doc/webapp/topic/21084865.html 绘制多条线 y=sin(x)+1 y=sin(x)+2 y=sin(x)+3 ……y=sin(x)+7 ,每个颜色不同,点样式不同,线类型循环重复。 ‘.’:点(point m 阅读全文
posted @ 2021-01-09 08:20
1+1=
阅读(4809)
评论(0)
推荐(0)
摘要:
通过读取数据covid_19_data.csv的,统计确诊、死亡、治愈人数,并绘制成饼图 covid_19_data.csv 我的答案: import matplotlib.pyplot as plt import numpy as np import pandas as pd plt.rcPara 阅读全文
posted @ 2021-01-09 08:19
1+1=
阅读(269)
评论(0)
推荐(0)
摘要:
下载09-18年度数据.csv文件,放置.py作业目录,绘制09-18年的 国民总收入 条形图。注意年份顺序。 09-18年度数据.csv 注: 1、图中显示中文在import matplotlib.pyplot as plt 后加入 plt.rcParams['font.family'] = [' 阅读全文
posted @ 2021-01-09 08:17
1+1=
阅读(808)
评论(0)
推荐(0)
摘要:
numpy矩阵操作 [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 阅读全文
posted @ 2021-01-09 08:15
1+1=
阅读(164)
评论(0)
推荐(0)
摘要:
切片cc=[1,2,3,4,5,6,7,8,9,10],从这个列表中,获得[2,4,6,8,10],并将其逆序输出cc=[1,2,3,4,5,6,7,8,9,10] a=cc[1:10:2] print(a[::-1]) 使用while或for 计算1~1000 奇数和 偶数和,并分别输出 我的答案 阅读全文
posted @ 2021-01-09 08:11
1+1=
阅读(238)
评论(0)
推荐(0)
摘要:
a=[1,3,5,7,9,11] bb={1:"家",2:"学校",3:"在路上"} a[2]=101 a.append(13) bb[3]="单位" print(bb) 阅读全文
posted @ 2021-01-09 08:02
1+1=
阅读(104)
评论(0)
推荐(0)

浙公网安备 33010602011771号