摘要:
1 from PIL import Image 2 from PIL import ImageEnhance 3 im=Image.open("little baby.jpg") 4 om=ImageEnhance.Sharpness(im).enhance(1.1) 5 am=ImageEnhan 阅读全文
摘要:
1 count=0 2 def hanoi(n,src,dst,mid): 3 global count 4 if n==1: 5 print("{}:{}->{}".format(1,src,dst)) 6 count+=1 7 else: 8 hanoi(n-1,src,mid,dst) 9 p 阅读全文
摘要:
1 from random import random 2 from math import sqrt 3 from time import * 4 from tqdm import tqdm 5 DARTS=10000000 6 hits=0.0 7 clock() 8 for i in rang 阅读全文
摘要:
1 import turtle 2 turtle.setup(800,400,200,200) 3 turtle.pensize(2) 4 turtle.fillcolor("red") 5 turtle.begin_fill() 6 turtle.fd(180) 7 turtle.seth(-14 阅读全文
摘要:
1 import turtle 2 turtle.setup(800,400,200,200) 3 turtle.pensize(2) 4 turtle.fillcolor("red") 5 turtle.begin_fill() 6 turtle.fd(180) 7 turtle.seth(-14 阅读全文
摘要:
1 import turtle 2 turtle.setup(800,400,200,200) 3 turtle.penup() 4 turtle.seth(90) 5 turtle.fd(50) 6 turtle.seth(0) 7 turtle.pendown() 8 turtle.pensiz 阅读全文