Kun Cao
Kun Cao
``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () 8 DON'T MODIFY ANYTHING IN THIS CELL 9 """ ---> 10 import helper 11 12 helper.download_extract('mnist', data_dir) /home/ablecao/workspace/cn-deep-learning/face-generation/helper.py in ()...
Python 3.* should use: ``` from unittest import mock``` Python 2.* use: ``` from mock import mock ```
@perlmonk 感谢! 我来fix 下。如果有发现bug,如果您有时间的话,也欢迎提供merge request哈
@perlmonk 关于`http api用Retrofit来实现更简洁` 当前后台API服务使用的是 Spring MVC + Swagger, 暂时不会更换。
@gguan 你说的是如下定义吗 [代码地址](https://github.com/xingePush/xinge-api-java/blob/master/src/main/java/com/tencent/xinge/bean/MessageIOS.java#L15) ``` @JsonProperty(value = "custom") @ApiModelProperty(notes = "自定义下发的参数") private String custom; ``` 这里是JSON String 类型的,这里需要传人的是String而不是JSONObject,是为了防止toString的时候多加上引号的问题
@bhtj27 我看如下代码位置是有 ```https.setHostnameVerifier(new TrustAnyHostnameVerifier());``` 这行代码的 https://github.com/xingePush/xinge-api-java/blob/master/src/main/java/com/tencent/xinge/XingeApp.java#L97