摘要: from random import random from pandas import DataFrame from time import time class SportCompetitionAnalyze: def PrintInfo(self): ''' function: 打印程序的介绍 阅读全文
posted @ 2021-01-09 19:36 εε 阅读(85) 评论(0) 推荐(0)
摘要: import urllib.request url = "https://www.sogou.com/" response = urllib.request.urlopen(url) content = response.read().decode('utf-8') for i in range(2 阅读全文
posted @ 2020-12-14 00:21 εε 阅读(96) 评论(0) 推荐(0)
摘要: import numpy as np ls1 = [10, 42, 0, -17, 30] nd1 =np.array(ls1) print(nd1) print(type(nd1)) import scipy import numpy as np from scipy import linalg 阅读全文
posted @ 2020-11-22 20:09 εε 阅读(73) 评论(0) 推荐(0)
摘要: print("模拟排球比赛,学号为04") from random import random def printInfo(): # 打印程序介绍信息 print('这个程序模拟两个选手A和B的某种竞技比赛') print('程序运行需要A和B的能力值(以0到1之间的小数表示)') def getI 阅读全文
posted @ 2020-11-22 20:01 εε 阅读(104) 评论(0) 推荐(0)
摘要: import jieba excludes = {"什么","一个","我们","那里","你们","如今","说道","知道","起来","姑娘","这里","出来","他们","众人","自己", "一面","只见","怎么",&quo 阅读全文
posted @ 2020-11-15 10:31 εε 阅读(86) 评论(0) 推荐(0)
摘要: import turtle, datetime def drawGap():#绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw):#绘制单段数码管 drawGap() turtle.pendown() if draw else turtle. 阅读全文
posted @ 2020-10-18 23:51 εε 阅读(565) 评论(0) 推荐(0)
摘要: import turtle number = int(input()) turtle.screensize(600,500,'white') turtle.pensize(3) turtle.pencolor('blue') turtle.fillcolor('yellow') turtle.beg 阅读全文
posted @ 2020-09-30 08:47 εε 阅读(117) 评论(0) 推荐(0)
摘要: import turtle turtle.speed(30) turtle.penup() off = True for y in range(-40, 30 + 1, 10): for x in range(-40, 30 + 1, 10): if off: turtle.goto(x, y) t 阅读全文
posted @ 2020-09-28 19:54 εε 阅读(150) 评论(0) 推荐(0)
摘要: import turtle turtle.right(60) turtle.forward(200) turtle.right(120) turtle.forward(200) turtle.right(120) turtle.forward(200) turtle.penup() turtle.f 阅读全文
posted @ 2020-09-28 19:22 εε 阅读(119) 评论(0) 推荐(0)
摘要: import turtle t=turtle.Turtle() t.penup() t.goto(0,-50)#设置起始坐标 t.pendown() t.begin_fill() t.fillcolor('black') t.circle(150,extent=180) t.circle(75,ex 阅读全文
posted @ 2020-09-28 18:58 εε 阅读(323) 评论(0) 推荐(0)