摘要: 这个下面的默认的数组被所有new的对象公用,,简直是python语言的bug 阅读全文
posted @ 2018-07-10 21:43 billhsu 阅读(155) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/chentiansaber/article/details/52288108 https://blog.csdn.net/bxjie/article/details/36688173 https://github.com/google/python-adb 阅读全文
posted @ 2018-05-11 20:48 billhsu 阅读(123) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/jnu_simba/article/details/27229693 阅读全文
posted @ 2018-05-07 17:02 billhsu 阅读(67) 评论(0) 推荐(0) 编辑
摘要: #--coding:utf-8--import os,sysdef excutecmd(cmd): print('cmd:::{}'.format(cmd)) try: print('1command is {} and pid is {}'.format(cmd, os.getpid())) re 阅读全文
posted @ 2018-05-03 23:16 billhsu 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 纯转: https://segmentfault.com/a/1190000000578037 1.使用 git add 命令添加文件名含中文字符的文件时 编辑 C:\Git\etc\inputrc 文件中对应的行,查找以下2行,并修改其值,原先: 改为: 2.使用git log查看含有中文的log 阅读全文
posted @ 2018-04-24 22:51 billhsu 阅读(264) 评论(0) 推荐(0) 编辑
摘要: acb67ea __init__.py config.py log.py response.py router.py sanic.py server.py 1.router.py 两个属性,一个是 routers字典,用来保存url和对应handler;一个是default,也就是defaultha 阅读全文
posted @ 2018-04-24 22:41 billhsu 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 读开源代码的时候遇到一个问题:如果希望从早期版本查看代码,不知道怎么弄 1.在下载有工程的目录里面打开git bash 2.输入 gitk 可以发现出现了界面 3.选择不同时间点的版本,复制对应的sha1 值 4.git checkout sha1 就可以切换到对应的版本下,工程的文件也随之变动 5 阅读全文
posted @ 2018-04-10 22:23 billhsu 阅读(75) 评论(3) 推荐(0) 编辑
摘要: 原因是 ubuntu 安装的电脑触摸板驱动有问题,鼠标经常往上面飘。不方便操作,干脆使用远程桌面算了 https://blog.csdn.net/lengconglin/article/details/77894636 参考的上面的操作,,其中安装xubuntu需要6-700M的空间比较浪费硬盘 如 阅读全文
posted @ 2018-03-23 08:26 billhsu 阅读(117) 评论(1) 推荐(0) 编辑
摘要: 1.卸载 linux版本 https://blog.csdn.net/lgz_ei/article/details/68592265 uname -a #当前用户使用版本 sudo apt-get remove linux-image-xxxx dpkg --get-selections|grep 阅读全文
posted @ 2018-03-22 23:11 billhsu 阅读(311) 评论(4) 推荐(0) 编辑
摘要: windows平台上 gitforwindows https://gitforwindows.org/ 下载安装 1.创建秘钥 $ ssh-keygen -t rsa -C "xxx@xx.com" 提示输入密码两次 passphrase 2.测试链接github ssh -T -v git@git 阅读全文
posted @ 2018-03-20 23:25 billhsu 阅读(71) 评论(1) 推荐(0) 编辑