Python-rsa.pkcs1.DecryptionError: Decryption failed
问题描述: 前端使用 JSEncrypt 对数据进行 RSA 加密后经 axios 传回Python后端,当后端进行解密时发生以下错误: ... File "C:\Users\wei\Desktop\MiniPlayer-Server\.\utils\security.py", line 57, in rsa_decrypt return rsa.decrypt(data,key).de…
3,031 2022-11-07 0 阅读更多C# 秒转分秒 Time Format
在开发中获取到时间数据后,我们可能需要将时间格式化成人类可认读的时间格式,列如获取到音频文件后我们需要展示该音频总时长及当前时长,以下代码块就正好解决了当前的问题。 对函数输入总秒数,函数将输出"mm:ss"格式的时间文本。 private string Sec…
3,877 2022-10-28 0 阅读更多如何使用Python-Pandas处理Xlsx数据
导入读取文件 大赛使用的数据文件大多为xlsx格式,即Excel表格文件格式。在Python中有许多库可直接操作Excel文件,例如 pandas 库。 首先需要引入pandas、numpy库并分别命名pd、np方便后续代码引用, import pandas as pd # 用于操作Excel文件 impor…
5,170 2022-07-31 0 阅读更多完美校园电费查询新接口请求原理解析
本文针对于WX端接口展开分析 某天发现之前给宿舍写的查电费软件不能用了。自己琢磨了两天,发现新接口不和之前一样抓到接口后直接请求就能用。这一次更新添加了身份验证的步骤。 (文章所包含本人信息等关键字符串在发布前均测试为失效) 直接说一下基本流程…
5,054 2022-06-08 0 阅读更多find_element_by_xpath()被弃用解决方案
在使用selenium的 find_element_by_xpath() 方法定位元素的时候会提示以下错误: DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead 虽然不会影响目标的最终实现,但总有一个这样的警告很是…
3,898 2022-05-15 0 阅读更多[PytzUsageWarning]消除使用apscheduler时遇到的警告
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do …
4,163 2022-05-02 0 阅读更多【问题解决】Linux下配置Python3软链失败(ln: failed to create symbolic link '/usr/bin/python3': File exists)
查看linux软链的存放位置: cd /usr/bin 查看Python现有的软链指向: ls -al python 尝试建立新的软连接: ln -s /usr/local/python3/bin/python3.10 /usr/bin/python3 建立时提示如下报错信息: ln: failed to create symbolic link '/usr/b…
5,991 2022-02-13 0 阅读更多【问题解决】subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
在进行pip任何操作时会展现以下错误: ERROR: Exception: Traceback (most recent call last): File "/usr/local/python3/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 173, in _main status = self.run(options, args) Fil…
10,195 2022-02-13 0 阅读更多基于opencv在Python实现Minecraft钓鱼脚本
0. 引言 近日,在服务器开荒的时候听到有玩家说要整潮涌之心去拆海底神殿。但潮涌之心需要8个鹦鹉螺合成。鹦鹉螺有三种方法获得,一是找拿着鹦鹉螺的溺尸,二是找流浪商人,三则是钓鱼。懒惰的我肯定懒得跑去找溺尸和流浪商人,并且花费大量的时间获得的附属物…
13,216 2021-12-31 2 阅读更多