上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 在开发的过程中碰到了一个有趣的问题。看下面这段代码: LOCAL = None try: from local_setting import * except ImportError as e: logging.exception(e) pass # 这里只有线上才会传LOG_FILE print( 阅读全文
posted @ 2022-04-09 18:27 zjhgx 阅读(215) 评论(0) 推荐(0)
摘要: python中的relative import使用起来却有不少问题。 比如下面这样一个结构 crawler |_src_ | |_spiders_ | |_test.py | |_local_settings.py test.py中想import local_settings这个模块,那在test. 阅读全文
posted @ 2022-04-08 22:29 zjhgx 阅读(2943) 评论(0) 推荐(0)
摘要: 2.1 方式一:下载gitlab-ce的rpm包 gitlab官方rpm包下载 清华的源 将对应版本的gitlab-ce下载到本地后,直接yum安装即可 # 要先将这个rpm包下载到本地 yum install -y gitlab-ce-13.6.1-ce.0.el7.x86_64.rpm 2.2 阅读全文
posted @ 2021-12-25 20:15 zjhgx 阅读(145) 评论(0) 推荐(0)
摘要: 1. 存储过程declare的变量不要和数据库字段名一样 啊,不然可能插入时是Null DELIMITER ;; CREATE DEFINER=`root`@`%` PROCEDURE `fAddScore`(IN `_userid` int,IN `_gold` bigint,IN `_typeI 阅读全文
posted @ 2021-11-29 18:38 zjhgx 阅读(50) 评论(0) 推荐(0)
摘要: 1. 在学slice的时候有个地方感到困惑: unc main() { s := []int{2, 3, 5, 7, 11, 13} printSlice(s) // Slice the slice to give it zero length. s = s[:0] printSlice(s) // 阅读全文
posted @ 2021-10-29 22:20 zjhgx 阅读(57) 评论(0) 推荐(0)
摘要: 点compile突然报错,报:Execution failed for task ':game:transformClassesAndResourcesWithProguardForReleaseFeature'. 解决方法是重启cocos creator。 阅读全文
posted @ 2021-10-06 23:53 zjhgx 阅读(158) 评论(0) 推荐(0)
摘要: 1. go mod tidy : dial tcp xx:443: i/o timeout, 因为go 1.17 默认的GOPROXY=https://proxy.golang.org,direct ,在墙内无法访问。 所以在.zshrc /.bashrc 加上环境变量 export GOPROXY 阅读全文
posted @ 2021-09-25 23:58 zjhgx 阅读(7612) 评论(0) 推荐(0)
摘要: 遇到一件怪事,今天在测试一段代码时老时报NullPointException 代码: ObjectUtil.java JdOrder jdOrder = new JdOrder(); jdOrder.setSkuId(132323324l); jdOrder.setCommissionRate(Bi 阅读全文
posted @ 2021-09-03 02:16 zjhgx 阅读(493) 评论(0) 推荐(0)
摘要: 首先看Aspect的代码 @Pointcut("within(com.davidhu.shopguide.admin.mapper..*) + " || within(com.davidhu.shopguide..*.impl..*)" " ) public void applicationPack 阅读全文
posted @ 2021-08-21 22:09 zjhgx 阅读(482) 评论(0) 推荐(0)
摘要: <q-btn v-if="isTaoPwd == false" class="text-weight-bold" target="_blank" color="accent" text-color="white" :size="buttonSize" type="a" :href="`${host} 阅读全文
posted @ 2021-08-05 17:32 zjhgx 阅读(186) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页