python
靓仔建
专注.net C# WPF 6年.
展开
-
django TypeError: Object of type bytes is not JSON serializable
TypeError: Object of type bytes is not JSON serializable:中文翻译bytes不能正常json序列化?错误截图:后来发现是前面的代码没把数据的<class 'bytes'>转为str.print(token, type(token))str2 = str(token, encoding="utf-8")...原创 2021-08-13 17:43:16 · 741 阅读 · 0 评论 -
在Linux系统使用虚拟显示pyvirtualdisplay,python模拟浏览器
不使用界面显示浏览器: 1,pip install pyvirtualdisplay 2,编写的代码: frompyvirtualdisplay import Display dispay = Dispaly(visible=0,size=(800,600) dispaly.start() brower = webdriver.Chrome("webdriver放的路径") brower.get()...原创 2021-04-09 15:37:04 · 1347 阅读 · 0 评论 -
Message: javascript error: missing ) after argument list (Session info: chrome=89.0.4389.90)
先看看错误提示的截图:解决问题: 要检查js编写代码是否正确。原创 2021-04-09 14:32:46 · 1732 阅读 · 0 评论 -
在64位windows7下CMD命令安装python与Flask
1.在python官网下载系统对应的Python版本 连接:https://www.python.org/downloads/windows/ 我的电脑是64位windows7 下载了:python-2.7.13.amd64.msi2.之前在百度搜索好多安装教程都安装不了ez_setup.py。 用python的IDLE编辑器打开运行,居然提示以下错误:原原创 2017-06-20 14:34:21 · 4753 阅读 · 1 评论