2020年12月14日

摘要: # -*- coding: utf-8 -*- import bs4 import requests from bs4 import BeautifulSoup import pandas as pd import matplotlib.pyplot as plt def getHTMLText(u 阅读全文

posted @ 2020-12-14 23:59 binbinblue 阅读(66) 评论(0) 推荐(0)

摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html作业-34号</title> </head> <body> <h1>My first title</h1> <p id="first">My first Paragraph 阅读全文

posted @ 2020-12-14 23:54 binbinblue 阅读(207) 评论(1) 推荐(0)

摘要: # 导入库 import requests from bs4 import BeautifulSoup def getUrlText(url): try: web = requests.get(url) soup = BeautifulSoup(web.text) web.raise_for_sta 阅读全文

posted @ 2020-12-14 23:53 binbinblue 阅读(138) 评论(0) 推荐(0)


2020年11月22日

摘要: Numpy:为大型多维数组和矩阵添加 Python 支持,并提供高级的数学函数来运算这些数组。 SciPy:基于 Numpy,汇集了一系列的数学算法和便捷的函数。它可以向开发者提供用于数据操作与可视化的高级命令和类,是构建交互式 Python 会话的强大工具。 Pandas:面向数据操作和分析的 P 阅读全文

posted @ 2020-11-22 20:08 binbinblue 阅读(77) 评论(0) 推荐(0)

摘要: from random import random def printInfo(): ''' 打印程序的功能信息 print("\t 34蓝衍斌)") print("\t\t这个程序模拟2个队伍A和B的排球竞技比赛!") print("\t 程序运行需要队伍A和B的能力值(0到1之间的小数表示)") 阅读全文

posted @ 2020-11-22 19:39 binbinblue 阅读(71) 评论(0) 推荐(0)

摘要: import jieba #添加jieba分词 mydict = ['琏二奶奶','凤哥儿','凤丫头','宝姑娘','颦儿','二姑娘','三姑娘','四姑娘','云妹妹','蓉大奶奶'] for item in mydict: jieba.add_word(item) txt = open('红 阅读全文

posted @ 2020-11-22 19:30 binbinblue 阅读(52) 评论(0) 推荐(0)


2020年10月18日

摘要: import turtle as t import time def popspace(): #单管间隔 t.penup() t.fd(5) def popline(draw): #画数码管 popspace() t.pendown() if draw else t.penup() t.fd(40) 阅读全文

posted @ 2020-10-18 12:44 binbinblue 阅读(65) 评论(0) 推荐(0)


2020年9月21日

摘要: import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) # 花蕊 turtle.fillcolor("red") turtle.begin_fill( 阅读全文

posted @ 2020-09-21 19:14 binbinblue 阅读(113) 评论(0) 推荐(0)


2020年9月15日

摘要: import turtle turtle.setup(650,350,200,200) turtle.penup() turtle.pensize(1) turtle.pencolor("red") turtle.fillcolor("purple") turtle.begin_fill() tur 阅读全文

posted @ 2020-09-15 11:14 binbinblue 阅读(80) 评论(0) 推荐(0)

摘要: import turtle turtle.left(30) turtle.forward(144) turtle.right(60) turtle.forward(144) turtle.right(60) turtle.forward(144) turtle.right(60) turtle.fo 阅读全文

posted @ 2020-09-15 10:55 binbinblue 阅读(64) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3