error
记录编程中遇到的问题以及解决方法
金天天柱
这个作者很懒,什么都没留下…
展开
-
query database error,read time out(mysql查询超时)
写查询sql时,若使用了 join连表查询,那么为on后面相关条件的表字段创建Btree索引将显著提高查询效率原创 2023-11-24 10:54:49 · 398 阅读 · 1 评论 -
请求api.weixin.qq.com/wxa/business/getuserphonenumber,错误代码:40029, 错误信息:code 无效
遇到这么一个特例,用户微信绑定的手机号是我们系统里存储的手机号,可是使用这个接口api.weixin.qq.com/wxa/business/getuserphonenumber却报错,其他人都正常。后来只能我们手动为该用户添加号码,跳过了微信平台校验。猜测应该是微信系统没有存储这个电话号码。原创 2023-10-18 11:13:04 · 1590 阅读 · 0 评论 -
Vue.config.productionTip = false无效
原因:刷新页面时,系统会先加载vue.js文件中的config.productionTip。解决办法:需要修改vue.js文件。原创 2023-04-17 15:23:44 · 191 阅读 · 0 评论 -
Failed to connect to 127.0.0.1 port 7890 after 2034 ms: Couldn‘t connect to server
原创 2023-04-24 14:37:34 · 2439 阅读 · 2 评论 -
uniapp的admin首次运行遇到 “文件查找失败“
uniapp的admin首次运行遇到 "文件查找失败"原创 2023-03-08 09:07:37 · 5156 阅读 · 1 评论 -
ValueError: invalid literal for int() with base 10: ‘5.3‘
python 中通过 casting来实现字符类型转换时,无法将小数类型的字符串转换为整型y = int("5.3")print(y)输出:ValueError: invalid literal for int() with base 10: ‘5.3’y = int("5")print(y)输出:5原创 2021-06-12 23:52:39 · 306 阅读 · 2 评论 -
TypeError: can only concatenate str (not “int“) to str
python中print(),不能同时输出文本和整型数字。1.错误示范x = 1print("数字哦"+ x)输出:TypeError: can only concatenate str (not “int”) to str2.正确示范x = "字符串"print("数字哦"+ x)输出:数字哦字符串...原创 2021-06-12 23:33:23 · 726 阅读 · 0 评论 -
AttributeError: partially initialized module ‘calendar‘ has no attribute ‘month‘
#python文件命名文件名不能与代码块名相同例如:import calendar # 输入指定年月yy = int(input("输入年份: "))mm = int(input("输入月份: ")) # 显示日历print(calendar.month(yy,mm))报错AttributeError: partially initialized module 'calendar' has no attribute 'month' (most likely due to a cir原创 2021-05-23 21:46:44 · 661 阅读 · 0 评论