Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

首先,安装pyjwt模块: 1pip3 install pyjwt 然后写出装饰器函数: 1234567891011121314151617181920212223# jwt验证def jwt_isvalid(func): def inner(request, *args, **kwargs): # 获取token token = request.GET.g...

转载自RuntimeError: cryptography is required for sha256_password or caching_sha2_password。 方法亲测有效。 解决方法: 安装cryptography: 1pip3 install cryptography

使用matplotlib绘制散点图使用pyplot.scatter方法绘制散点图,其他步骤和绘制折线图基本没有什么不同。 下面是代码: 1234567891011121314151617181920212223242526272829303132333435363738from matplotlib import pyplot as pltfrom matplotlib import fon...

参考自mysql异常处理。 在__init__.py文件夹里添加一行: 1pymysql.version_info = (8, 0, 20, 'final', 0) 再次执行: 1python3 manage.py makemigrations 即可成功。

可以直接在类里设定返回指定的字段: 123456class ArchUserSerializer(ModelSerializer): class Meta: model = ArchUser fields = ['id', 'username', 'email', 'phone'...

本博客部分内容借鉴于:解决Linux无法连接蓝牙耳机Bose QuietComfort 35(QC35)的问题-漫月者,感谢博主的分享!

首先,安装蓝牙模块,参照Arch Wiki:Bluetooth
安装bluez和bluez-utils:

1
sudo pacman -S bluez

加载模块:

1
modprobe bluetooth

设置开机启动:

1
sudo systemctl enable bluetooth.service

开启服务:

1
sudo systemctl start bluetooth.service

音量控制器: alsamixer截图:scrot,被我设置成ctrl + alt + P了。按下这一组快捷键会在/home/fire/Desktop下生成截图文件。vscode: codeOSD Lyrics: 歌词性能监测: htop蓝牙:bluetoothctlv2ray: 终端运行v2raya,浏览器访问:https://v2raya.mzz.pub/。或...

这次的内容是PIL长图片合成,效果如下:

想要用七牛云对象储存,首先,你需要有一个七牛云账号。注册好账号之后点击右上角的控制台,选择对象存储,开心的创建应用…..???什么!居然需要实名认证!告辞…

那么实名认证之后,在命令行输入:

如果在使用deepin系统时出现个性化里的窗口特效打不开的情况,那么可以采取以下方法:

首先,安装模块

1
sudo apt install deepin-wm

然后输入以下命令:

1
deepin-wm --replace



愿火焰指引你