12 2020 档案

摘要:Outline 平时写if判断和for循环都是中规中矩,按常规套路来,但今天同事问我这方面的东西给; 把他for循环+if else判断改成了一行。 改完之后代码看起来更优雅了 哈哈哈 需求 假设有这么个需求: 判断一个可迭代对象中的元素是否以字母 “s” 结尾; 以 “s” 结尾,则保留这个元素 阅读全文 »
posted @ 2020-12-29 17:50 ZhuGaochao 阅读(9121) 评论(3) 推荐(0) 编辑
摘要:Outline 今天在启动celery时报错: [2020-12-21 14:12:48,615: ERROR/MainProcess] consumer: Cannot connect to redis://127.0.0.1:6379/1: MISCONF Redis is│configured 阅读全文 »
posted @ 2020-12-21 14:21 ZhuGaochao 阅读(5903) 评论(0) 推荐(0) 编辑
摘要:Outline 今天用下面代码处理数据时,系统报错说 pd.concat() 没有join_axes参数; pd.concat([df1, df2], axis=1, join_axes=[df1.index]) 问题定位 经过定位,发现问题出在pandas版本上,我的pandas是 pandas= 阅读全文 »
posted @ 2020-12-19 17:55 ZhuGaochao 阅读(4992) 评论(0) 推荐(1) 编辑
摘要:Outline 运行环境: # Windows 10 # python 8 # redis 2.10.5 # Flask 1.0.2 # Celery 3.1.25# debug 工具: Pycharm 准备打一个服务,Flask+celery,但是在执行时报错: File "D:\ProgramD 阅读全文 »
posted @ 2020-12-19 10:22 ZhuGaochao 阅读(993) 评论(0) 推荐(0) 编辑
摘要:OutLine 由于直接 pip install line_profiler 遇到网络问题,无法进行python库的安装; 所以去网上下载了需要的.whl文件进行安装,但pip install xxx.whl 时报错: ERROR: line_profiler-3.1.0-cp39-cp39-win 阅读全文 »
posted @ 2020-12-09 19:44 ZhuGaochao 阅读(1882) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示