摘要:
from PIL import Image import numpy as np a = np.asarray(Image.open('D:/anaconda/learning note/7e5829bdcefae7d1.jpg').convert('L')).astype('float') de 阅读全文
摘要:
import random def printIntro(): print("moniA and B") def getInputs(): a = eval(input("please input A socre(0~1):")) b = eval(input("please input B soc 阅读全文
摘要:
1 import time 2 scale=50 3 print("执行开始".center(scale//2,"-")) 4 start=time.perf_counter() 5 for i in range(scale+1): 6 a='*' *i 7 b='·' *(scale-i) 8 c 阅读全文
摘要:
1 ss = input() 2 t = "" 3 for i in ss: 4 if 'a' <= i <= 'z': 5 t += chr( ord('a') + ((ord(c)-ord('a')) + 3 )%26 ) 6 elif 'A'<=c<='Z': 7 t += chr( ord( 阅读全文
摘要:
import turtle turtle.color("red") turtle.pencolor("black") turtle.penup turtle.fd(-100) turtle.pendown turtle.begin_fill() for i in range(5): turtle.f 阅读全文
摘要:
import turtle as t t.penup() t.fd(-100) t.pendown() t.seth(30) for i in range(3): t.fd(120) t.right(120) t.fd(40) t.left(60) t.fd(40) t.seth(-30) for 阅读全文