摘要: 要求:a 打印head标签内容和你的学号后两位‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬ ‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬ 阅读全文
posted @ 2020-12-17 23:19 决战到天亮 阅读(86) 评论(0) 推荐(0)
摘要: import jieba txt=open('D:/红楼梦/红楼梦.txt',"r",encoding='utf-8').read() excludes = {"什么","一个","我们","你们","如今","说道","知道","姑娘",\ "起来","这里","出来","众人","那里&quo 阅读全文
posted @ 2020-11-22 16:46 决战到天亮 阅读(413) 评论(0) 推荐(0)
摘要: 比赛规则: 1. 采用5局3胜制 2. 前四局采用25分制,每个队只有在赢得至少25分,且同时超过对方2分时才胜一局 3. 决胜局(第五局)采用15分制,先获得15分,且同时超过对方2分为胜 # -*- encoding:utf-8 -*- ''' 模拟排球竞技 ''' # 比赛规则: # 1. 采 阅读全文
posted @ 2020-11-21 15:56 决战到天亮 阅读(451) 评论(0) 推荐(0)
摘要: import jieba text=open('D:/红楼梦/红楼梦.txt',"r",encoding='utf-8').read() words=jieba.lcut(text) counts={} for word in words: if len(word)==1: #排除带个字符的分词效果 阅读全文
posted @ 2020-11-12 15:20 决战到天亮 阅读(165) 评论(0) 推荐(0)
摘要: 小明,10岁,男,上山去砍柴 小明,10岁,男,开车去东北 小明,10岁,男,最爱打游戏 老李,90岁,男,上山去砍柴 老李,90岁,男,开车去东北 老李,90岁,男,最爱打游戏 def kanchai(name, age, gender): print ("%s,%s岁,%s,上山去砍柴" %(n 阅读全文
posted @ 2020-10-26 20:56 决战到天亮 阅读(65) 评论(0) 推荐(0)
摘要: import turtle, time def drawGap():turtle.speed(0) # 设置画笔速度 “fastest”:0 "fast":10 "normal":6 "slow":3 "slowest":1# turtle.Turtle().screen.delay(0) #画笔速 阅读全文
posted @ 2020-10-16 20:24 决战到天亮 阅读(137) 评论(0) 推荐(0)
摘要: from random import random from time import perf_counter DARTS = 1000*1000*10 hits = 0.0 start = perf_counter() for i in range(1, DARTS+1): x, y = rand 阅读全文
posted @ 2020-10-10 18:05 决战到天亮 阅读(154) 评论(0) 推荐(0)
摘要: #画国际象棋盘,小格边长为width import turtle turtle.speed(0) width = eval(input()) #画黑格 def drawSquare(width): turtle.pendown() turtle.begin_fill() turtle.fillcol 阅读全文
posted @ 2020-09-30 16:04 决战到天亮 阅读(146) 评论(0) 推荐(0)
摘要: import turtle turtle.speed(0) turtle.fillcolor('black') turtle.begin_fill() turtle.circle(120,180) turtle.left(180) turtle.circle(-60,180) turtle.circ 阅读全文
posted @ 2020-09-30 16:00 决战到天亮 阅读(124) 评论(0) 推荐(0)
摘要: import turtle turtle.pensize(5) coordA=(-110,0,110,-55,55) #五个图起点坐标的x值 coordB=(-25,-25,-25,-75,-75) #五个圆起点坐标的y值 cl=("red","blue","green","yellow","bla 阅读全文
posted @ 2020-09-30 15:53 决战到天亮 阅读(351) 评论(0) 推荐(1)