- 博客(6)
- 收藏
- 关注
原创 微信小程序:navigator在真机调试时无法跳转
问题在wxml里面使用了navigator来控制跳转,在微信开发者工具里能正确跳转,但是在真机调试时点击却无反应原因及办法navigator 对应的 url 必须配置在app.json的pages中,否则无法跳转。所以解决办法就是在app.json -> pages里配置上对应的url另外:navigator 对应的 url 不能配置在"tabBar"的"list"里,负责也无法跳转,因为tabBar的跳转需用switchTab进行。参考博客...
2021-02-27 10:55:45 1876
原创 python:raise ProxyError(e, request=request) requests.exceptions.ProxyError
利用requests发起网络请求时,出现以下错误:原因:使用了代理解决办法:当然是关闭代理,重新运行一次
2021-02-19 22:10:21 2136 5
原创 python: Could not find a version that satisfies the requirement cycler>=0.10 (from matplotlib)
安装matplotlib时,报错:Could not find a version that satisfies the requirement cycler>=0.10 (from matplotlib)安装pygame成功了,安装matplotlib却失败了,这是网络原因造成的,当时我开了vpn,所以一直报这种错,把vpn关掉后竟然安装成功了。网上也有人说是网速造成的,可以考虑换个网络或镜像源。...
2021-02-08 21:43:36 820
原创 在pycharm中导入pygame以及解决导入失败的问题
安装pygame到电脑先到这里下载pygame, 版本要与自己电脑的python版本对应然后来到存放文件的目录中,打开命令窗口,执行pip install pygame-2.0.1-cp38-cp38-win32.whl后面的pygame-2.0.1-cp38-cp38-win32.whl要记得替换成自己下载的文件名,命令执行完后会显示安装成功的提示在pycharm项目中导入pygame网上很多说法是直接在Pycharm中的Setting -> project interpreter中
2021-02-08 18:03:21 2823 1
原创 python: AttributeError: ‘Settings‘ object has no attribute ‘screen_width‘
python实例化时报错class Settings: """存储《外星人》的所有设置的类""" def _init_(self): """初始化游戏的设置""" # 屏幕设置 self.screen_width = 900 self.screen_height = 600 self.bg_color = (230, 230, 230)通过settings = Settings()实例化Settings时
2021-02-08 17:26:34 6697 11
原创 partially initialized module ‘json‘ has no attribute ‘dump‘ (most likely due to a circular import)
python报错:AttributeError: partially initialized module 'json' has no attribute 'dump' (most likely due to a circular import)这是由于我的py文件名字是json.py,导致import json导入的是我自己写的py文件我不是python库。解决办法当然就是把文件名改掉...
2021-02-06 22:08:51 1517 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人