摘要: 参考: 1. https://stackoverflow.com/questions/49859287/what is the need of threading lock when cpython has gil 2. https://stackoverflow.com/questions/400 阅读全文
posted @ 2018-04-22 12:56 Rocin 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 1. 问题:很好奇为什么叫Join? 参考: 1. https://blog.csdn.net/frankarmstrong/article/details/55504161 2. https://stackoverflow.com/questions/15956231/what does this 阅读全文
posted @ 2018-04-22 11:02 Rocin 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 在c.py中 阅读全文
posted @ 2018-04-22 09:29 Rocin 阅读(6471) 评论(0) 推荐(0) 编辑
摘要: ``` 1. shift + f10 2. cd oobe 3. Msoobe ``` 阅读全文
posted @ 2018-04-22 00:59 Rocin 阅读(494) 评论(0) 推荐(1) 编辑
摘要: ```python import numpy as np import matplotlib.pyplot as plt #用最小距离法(minimum distance algorithm)去检测目标点属于哪一个set #the distance of point x and point y def dist(x,y): return np.sqrt(np.sum((x - y) ** 2... 阅读全文
posted @ 2018-04-22 00:54 Rocin 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 图片来自网上资料 阅读全文
posted @ 2018-04-22 00:51 Rocin 阅读(216) 评论(0) 推荐(0) 编辑
摘要: ``` 1. 打开/etc/mysql/debian.cnf文件,在这个文件中有系统默认给我们分配的用户名和密码,通过这个密码就可以直接对MySQL进行操作了。 2. 以debian-sys-maint为用户名登录,密码就是debian.cnf里那个。使用mysql -u debian-sys-maint -p 进行登录。 3. 进入mysql之后修改MySQL的密码,具体的操作如下用命令:set... 阅读全文
posted @ 2018-04-22 00:48 Rocin 阅读(2674) 评论(0) 推荐(0) 编辑
摘要: ``` 1. 在Windows上,安装时请选择UTF-8编码,以便正确地处理中文。 在Mac或Linux上,需要编辑MySQL的配置文件,把数据库默认的编码全部改为UTF-8。MySQL的配置文件默认存放在/etc/my.cnf或者/etc/mysql/my.cnf: [client] default-character-set = utf8 [mysqld] default-storage-e... 阅读全文
posted @ 2018-04-22 00:47 Rocin 阅读(1707) 评论(0) 推荐(0) 编辑
摘要: http://bindog.github.io/blog/2015/03/10/synchronization in multiplayer networked game lockstep/ 游戏的暴击几率是“假”的 阅读全文
posted @ 2018-04-22 00:43 Rocin 阅读(222) 评论(0) 推荐(0) 编辑
摘要: https://en.wikipedia.org/wiki/Scheduling_(computing) 在wiki的下面可以找到 阅读全文
posted @ 2018-04-22 00:33 Rocin 阅读(274) 评论(0) 推荐(0) 编辑