![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
暮雪成冰
这个作者很懒,什么都没留下…
展开
-
Python List的赋值方法
Python中关于对象复制有三种类型的使用方式,赋值、浅拷贝与深拷贝。他们既有区别又有联系,刚好最近碰到这一类的问题,研究下。一、赋值 在python中,对象的赋值就是简单的对象引用,这点和C++不同。如下: [python] view plain copya = [1,2,3,"hello",["python","C++"]] b = a print a==b ...转载 2018-04-15 18:13:09 · 7088 阅读 · 1 评论 -
requests_mock 安装
requests_mock 安装先在python3.6目录下安装 requests_mock,之后项目引用 python3.6时候,勾选inherit选择框原创 2018-04-11 14:49:25 · 750 阅读 · 0 评论 -
r_breaker 和 海龟 python代码
def handle_trade_R_Breaker(self): #logger.info('Debug by Lu: handle_trade_R_Breaker is called') buy_orders = [] sell_orders = [] # xxxx instrument = self.exchange.get_instrument() if self.is_newD...转载 2018-05-25 06:45:32 · 924 阅读 · 0 评论 -
r_breaker 和 海龟 python代码
def handle_trade_R_Breaker(self): #logger.info('Debug by Lu: handle_trade_R_Breaker is called') buy_orders = [] sell_orders = [] # xxxx instrument = self...转载 2018-05-25 06:48:06 · 711 阅读 · 0 评论 -
facenet: ValueError: Input 0 of node cross_entropy_per_example/Shape was passed int32 from batch_joi
问题:ValueError: Input 0 of node cross_entropy_per_example/Shape was passed int32 from batch_join:1 incompatible with expected int64.解决:FIFOQueue to tf.int64 from tf.int32. And also change the ...转载 2019-06-05 12:27:03 · 471 阅读 · 2 评论 -
ubuntu安装mysql 时未提示输入密码
我在Ubuntu16.04版本中使用终端安装MySQL5.7时,按照度娘的教程,搜索如何安装,大多是如下代码:sudo apt-get install mysql-serversudo apt-get install mysql-client12检查MySQL是否运行: sudo netstat -tap | grep mysql1如果成功安装,我的会显示如下内容:tc...转载 2019-06-12 15:45:43 · 397 阅读 · 0 评论 -
解决mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists
事情是这样的,原先创建MySQL中的root用户,指定的host为localhost,就想改一下为某个网段的,结果改完之后就退出了,然后就悲剧了,无法连接了。网上找的大部分解决办法是:ubuntu下操作#先停止MySQL服务service msyql stop#跳过安全检查/usr/bin/mysqld_safe --skip-grant-tables &#重开一个sh...转载 2019-06-12 16:42:04 · 2965 阅读 · 0 评论