摘要: 一、利萨茹曲线 二、计算斐波那契数列 三、方波 方波可以近似表示为多个正弦波的叠加。任意一个方波信号都可以用无穷傅里叶级数来表示。 需要累加很多项级数,且级数越多结果越精确,这里取 k=99(可以分别设置为9,50,1000等进行测试观察生成效果) 以保证足够的精度。绘制方波的步骤如下。 1) 初始 阅读全文
posted @ 2022-12-02 20:59 ChuckLu 阅读(624) 评论(0) 推荐(0) 编辑
摘要: Python制作英文学习词典 阅读全文
posted @ 2022-12-02 12:46 ChuckLu 阅读(57) 评论(0) 推荐(0) 编辑
摘要: https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.resize Image.resize(size, resample=None, box=None, reducing_gap=None)[sou 阅读全文
posted @ 2022-12-02 01:31 ChuckLu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: How to get file size in Python? We can follow different approaches to get the file size in Python. It’s important to get the file size in Python to mo 阅读全文
posted @ 2022-12-02 00:15 ChuckLu 阅读(42) 评论(0) 推荐(0) 编辑
摘要: python实现图像文件等比例压缩 使用Image类中的open()方法从文件加载图像,使用其中的size属性获得图像的宽度和高度。os模块中的path.getsize ()方法可以获得文件的大小,单位是字节B(1B=8Bit,1KB=1024B)。 阅读全文
posted @ 2022-12-02 00:09 ChuckLu 阅读(300) 评论(0) 推荐(0) 编辑