2018年8月1日
摘要: 运行Java程序,javac运行.java文件没有报错,但java运行的时候报错 仔细看一下报错Exception in thread "main" java.lang.UnsupportedClassVersionError: helloworld has been... 阅读全文
posted @ 2018-08-01 20:05 CircleYuan 阅读(36169) 评论(0) 推荐(0) 编辑
摘要: pip10升级后各种pip install出错-----Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in from pip._internal import ma... 阅读全文
posted @ 2018-08-01 19:19 CircleYuan 阅读(753) 评论(0) 推荐(0) 编辑
2018年7月31日
摘要: 在使用vim编辑器时运行脚本程序纠察缺少相应的行号,检测起来非常不方便, 所以在vim编辑器每行前面加上相应的行号:输入命令::set nu 按下回车,完成 阅读全文
posted @ 2018-07-31 13:18 CircleYuan 阅读(214) 评论(0) 推荐(0) 编辑
2018年7月30日
摘要: 由于在使用vim编辑代码的时候不小心忘记首先输入i(insert)模式,导致写的代码出现了棕黄色的阴影显示摸索了很久终于找到了解决方法:1、退出vim编译器2、在在命令行下输入:nohl,回车即可取消高亮显示 阅读全文
posted @ 2018-07-30 16:49 CircleYuan 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 安装Python3.7.01.下载Python-3.7.0.tar.xz包安装wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz2.创建一个文件来安装Python3.7并转移到新目录mkdir /... 阅读全文
posted @ 2018-07-30 16:43 CircleYuan 阅读(335) 评论(0) 推荐(0) 编辑
2018年7月26日
摘要: 列表(list) a=[] 安装先后顺序,有下表位[index],可以重复,可变类型元组(tuple) a=() 有先后顺序,有下标位,元素可以重复,不可变(只能查)字典(dict) a={} 没有先后顺序,没有下标,key不可重复... 阅读全文
posted @ 2018-07-26 10:46 CircleYuan 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 对重复值的处理把数据结构中,行相同的数据只保留一行函数语法: drop_duplicates()from pandas import read_csvdf = read_csv(文件位置)newdf = df.drop_duplicates(); 对缺失值的处理... 阅读全文
posted @ 2018-07-26 10:43 CircleYuan 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 使用read_csv函数导入CSV文件read.csv函数语法 read_csv(file,encoding)例子: Age,Name 22,wangwei 23,lixin 24,liqing -... 阅读全文
posted @ 2018-07-26 10:31 CircleYuan 阅读(678) 评论(0) 推荐(0) 编辑
摘要: Python2随机写入二进制文件:with open('/python2/random.bin','w') as f: f.write(os.urandom(10))但使用Python3会报错:TypeError:must be str, not bytes原因... 阅读全文
posted @ 2018-07-26 10:24 CircleYuan 阅读(530) 评论(0) 推荐(0) 编辑