12 2020 档案
摘要:import sys # 生成器函数--斐波那契 def fibonacci(n): a, b, counter = 0, 1, 0 while True: if (counter > n): return yield a a, b = b, a+b counter += 1 f = fabonac
阅读全文
摘要:from time import time, localtime, sleep class Clock(object): def __init__(self, hour=0, minute=0, second=0): self._hour = hour self._minute = minute s
阅读全文
摘要:一、基本使用 测试图片为: 1.打开 from PIL import Image im = Image.open("C:/Users/bingyunsky/Desktop/test.jpg") print(im.format, im.size, im.mode) # 打印格式、尺寸(长、宽;pixe
阅读全文