04 2018 档案

摘要:loc 从特定的 gets rows (or columns) with particular labels from the index. iloc gets rows (or columns) at particular positions in the index (so it only ta 阅读全文
posted @ 2018-04-26 21:30 bingo彬哥 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-26 11:39 bingo彬哥 阅读(23778) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2018-04-25 21:16 bingo彬哥 阅读(2440) 评论(0) 推荐(0) 编辑
摘要:今天调试程序,发现了一个极为隐蔽的bug. True False关键字大小写写错了,然后半天没找出问题所在。 阅读全文
posted @ 2018-04-25 21:11 bingo彬哥 阅读(2811) 评论(0) 推荐(0) 编辑
摘要:Python脚本经常要设置同样的注释内容,Pycharm里面提供的模板可以很好的实现这个需求。 查找: pycharm将会在下次新建文件时自动创建文件模板。 阅读全文
posted @ 2018-04-25 20:59 bingo彬哥 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-04-25 20:55 bingo彬哥 阅读(7393) 评论(0) 推荐(0) 编辑
摘要:使用dpkg进行软件安装时,提示:dpkg:处理软件包XXX时出错:依赖关系问题,仍未被配置 使用如下命令,sudo apt get install f 等分析完之后,重新使用dpkg –i XXX.deb,就可以了。 阅读全文
posted @ 2018-04-19 12:52 bingo彬哥 阅读(3222) 评论(0) 推荐(0) 编辑
摘要:python2内容无法写入csv,报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0 3: ordinal not in range(128) 因为要跟2的代码对接,代码需要写入表格,但是一直写入不进去 阅读全文
posted @ 2018-04-19 11:57 bingo彬哥 阅读(5712) 评论(0) 推荐(0) 编辑
摘要:Stackoverflow 回答: 将byte类型转化:byte_string.decode('utf 8') Jinja2 is using Unicode internally which means that you have to pass Unicode objects to the re 阅读全文
posted @ 2018-04-19 11:52 bingo彬哥 阅读(4651) 评论(0) 推荐(0) 编辑
摘要:报错:W: 目标 Sources (main/source/Sources) 在 /etc/apt/sources.list:2 和 /etc/apt/sources.list:7 中被配置了多次 vim /etc/apt/sources.list 查看第2行和第7行,发现重复。 第2行是 deb 阅读全文
posted @ 2018-04-19 11:46 bingo彬哥 阅读(17123) 评论(0) 推荐(2) 编辑
摘要: 阅读全文
posted @ 2018-04-19 11:42 bingo彬哥 阅读(3060) 评论(0) 推荐(0) 编辑
摘要:1、linux内核版本 cat /proc/version Linux version 4.13.0 39 generic (buildd@lgw01 amd64 038) (gcc version 7.2.0 (Ubuntu 7.2.0 8ubuntu3.2)) 44 Ubuntu SMP Thu 阅读全文
posted @ 2018-04-19 11:38 bingo彬哥 阅读(1206) 评论(0) 推荐(0) 编辑
摘要:来源:https://stackoverflow.com/questions/23748995/pandas dataframe to list 阅读全文
posted @ 2018-04-19 11:25 bingo彬哥 阅读(118515) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2018-04-19 10:40 bingo彬哥 阅读(999) 评论(0) 推荐(0) 编辑
摘要:Ctrl c 中止当前正在执行的程序。 Ctrl d 相当于exit命令,退出当前会话。 Ctrl z 将当前运行的程序放到后台运行。与运行时加&类似。 阅读全文
posted @ 2018-04-19 10:32 bingo彬哥 阅读(1102) 评论(0) 推荐(0) 编辑
摘要:任何网络服务的后台进程都会打开一个端口,用于监听接入的请求。 这些正在监听的套接字也和连接的套接字一样,也能被 netstat 列出来。 参数 tnl, 现在我们可以看到处于监听状态的 TCP 端口和连接。 $ netstat tnl Active Internet connections (onl 阅读全文
posted @ 2018-04-19 09:32 bingo彬哥 阅读(1161) 评论(0) 推荐(0) 编辑
摘要:在linux下使用终端的时候常常不经意的就僵死了,只能够重启来解决这个问题,后来发现常常是因为按了Ctrl+s。 经过查询Ctrl + s在终端下的含义是暂停使用该终端的用途,如果需要启用终端,需要按下Ctrl + q。 阅读全文
posted @ 2018-04-08 19:44 bingo彬哥 阅读(1072) 评论(0) 推荐(0) 编辑

本站总访问量8982458
点击右上角即可分享
微信分享提示