Python
One橙序猿
我是一只爱搬砖的橙序猿!
展开
-
Batch Normalization代码分解
batch normalization原创 2022-10-08 14:00:24 · 548 阅读 · 0 评论 -
音频处理之边录边播
pyaudio 音频处理之边录边播。原创 2022-08-09 13:44:43 · 635 阅读 · 0 评论 -
Django Xadmin上传文件夹(图片和文件)
上传文件:修改xadmin/widgets.py文件class AdminFileWidget(forms.ClearableFileInput): template_with_initial = (u'<p class="file-upload">%s</p>' % forms.ClearableFileInput.initial_text) template_with_clear = (u'<s原创 2021-10-28 16:30:22 · 512 阅读 · 0 评论 -
matplotlib画小米新LOGO
最近讨论比较火的小米新Logo,今天闲着无聊画画看,哈哈哈。import numpy as npimport matplotlib.pyplot as pltx = np.linspace(-1, 1, 100000)y = np.power(1 - np.abs(x)**3, 1/3)x_all = np.concatenate([x, x])y_all = np.concatenate([y, -y])plt.figure(figsize=[6, 6])plt.scatter(x_原创 2021-04-07 17:08:01 · 293 阅读 · 2 评论 -
python YAML 多种数据格式
import yaml# import ruameldata = {0: {"K": [1, 2, 3, 4, 5, 6], "R": [0.2, 0.3, 0.4], "id": 99, "name": "cat"}, 1: {"K": [1, 2, 3, 4, 5, 6], "R": [0.2, 0.3, 0.4], "id": 99, "name": "cat"}, 2: {"K": [1, 2, 3, 4, 5, 6], "R": [0.2, 0.3, 0.4.原创 2020-12-30 12:22:06 · 596 阅读 · 0 评论