摘要: from random import random from pandas import DataFrame from time import time class SportCompetitionAnalyze: def PrintInfo(self): ''' function: 打印程序的介绍 阅读全文
posted @ 2020-12-31 00:16 庞宇达 阅读(37) 评论(0) 推荐(0)
摘要: import jieba txt = open("D:\\西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for wor 阅读全文
posted @ 2020-12-31 00:15 庞宇达 阅读(59) 评论(0) 推荐(0)
摘要: import requests for i in range (20): print("第",i+1,"次访问") r=requests.get("https://www.google.cn/") r.encoding='utf-8' print("返回状态:",r.status_code) pri 阅读全文
posted @ 2020-12-31 00:14 庞宇达 阅读(59) 评论(0) 推荐(0)
摘要: #第一种 print("小明,10岁,男,上山去砍柴") print("小明,10岁,男,开车去东北") print("小明,10岁,男,最爱打游戏") print("\n") print("老李,90岁,男,上山去砍柴") print("老李,90岁,男,开车去东北") print("老李,90岁 阅读全文
posted @ 2020-12-31 00:08 庞宇达 阅读(49) 评论(0) 推荐(0)
摘要: import time import turtle as tt def drawGap(): tt.penup() tt.fd(5) def drawLine(draw): drawGap() if(draw): tt.pendown() else: tt.penup() tt.fd(50) dra 阅读全文
posted @ 2020-12-31 00:07 庞宇达 阅读(56) 评论(0) 推荐(0)
摘要: n=eval(input()) list1=[] for i in range(0,n): list1.append(i) list1[i]=eval(input()) if list1[i]%2!=0 or list1[i]==0: print(0,0) elif list1[i]==2: pri 阅读全文
posted @ 2020-12-31 00:05 庞宇达 阅读(70) 评论(0) 推荐(0)
摘要: import turtle as t import turtle t.goto(100,0) for i in range(18): t.left(80) t.fd(100) t.left(135) t.fd(165) t.left(125) t.fd(115) turtle.done() 阅读全文
posted @ 2020-12-30 23:56 庞宇达 阅读(97) 评论(0) 推荐(0)
摘要: def PI(n): pi=0 for k in range(n): pi += 1/pow(16,k)*(4/(8*k+1)-2/(8*k+4)-1/(8*k+5)-1/(8*k+6)) return pi import time scale = 20 print("执行开始".center(sc 阅读全文
posted @ 2020-10-10 23:36 庞宇达 阅读(202) 评论(0) 推荐(0)
摘要: import turtlet = turtle.Pen()name='17信计庞宇达'turtle.setup(600,500,200,200)turtle.pensize(1)t.write(name)for i in range(3): turtle.fd(80) turtle.left(120 阅读全文
posted @ 2020-09-16 11:33 庞宇达 阅读(84) 评论(0) 推荐(0)
摘要: import turtle as tname='17信计庞宇达'q = t.Pen()t.setup(650, 350, 200, 200)t.seth(30)t.write(name)for i in range(6): t.fd(30) t.left(120) t.fd(30) t.left(1 阅读全文
posted @ 2020-09-16 11:32 庞宇达 阅读(54) 评论(0) 推荐(0)