摘要: from random import random def printIntro(): print("这个程序模拟两个选手张三和李四的某种竞技比赛") print("程序运行需要张三和李四的能力值(0-1)") def getInputs(): a = eval(input("请输入选手张三的能力值 阅读全文
posted @ 2020-04-21 08:49 Zeta—— 阅读(174) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image from PIL import ImageEnhance im = Image.open(r"C:\Users\Administrator\Desktop\1.jpg") om = ImageEnhance.Brightness(im) brightnes 阅读全文
posted @ 2020-04-14 16:06 Zeta—— 阅读(105) 评论(0) 推荐(0) 编辑
摘要: import jieba path = 'C:\\Users\\Administrator\\Desktop\\3国演义.txt' text = open(path,'r',encoding='utf-8').read() words = jieba.lcut(text) excludes = [' 阅读全文
posted @ 2020-04-07 08:52 Zeta—— 阅读(386) 评论(0) 推荐(0) 编辑
摘要: def hannuo(x,a,b,c): if x == 1: print(a,"->",c) else: hannuo(x-1,a,c,b) print(a,"->",c) hannuo(x-1,b,a,c) x = int(input()) hannuo(x,"A","B","C") 阅读全文
posted @ 2020-04-02 08:44 Zeta—— 阅读(132) 评论(0) 推荐(0) 编辑
摘要: import math import time s=10 t=time.process_time() for i in range(s+1): a,b='**'*i,'..'*(s-i) c=(i/s)*100 π=4*(4*math.atan(1/5)-math.atan(1/239)) prin 阅读全文
posted @ 2020-03-30 08:23 Zeta—— 阅读(147) 评论(0) 推荐(0) 编辑
摘要: turtle.penup()别名turtle.pu():拾起画笔 turtle.pendown()别名turtle.pd():放下画笔, turtle.color(color1, color2):同时设置pencolor=color1, fillcolor=color2。 turtle.pencol 阅读全文
posted @ 2020-03-13 21:23 Zeta—— 阅读(378) 评论(0) 推荐(0) 编辑
摘要: import turtle import time turtle.pensize(2) turtle.pencolor("black") turtle.fillcolor("red") turtle.begin_fill() for _ in range(5): turtle.forward(200 阅读全文
posted @ 2020-03-11 15:30 Zeta—— 阅读(208) 评论(0) 推荐(0) 编辑