04 2020 档案

摘要: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—— 阅读(106) 评论(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—— 阅读(387) 评论(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) 编辑