04 2020 档案

centos8删除开机菜单选项
摘要:升级内核后开机界面出现多个菜单选项,我的第一个选项并不能进入系统,须删除。 原因是:CentOS更新后不会自动删除旧内核。 首先查看内核版本: (base) [root@localhost ~]# uname -a Linux localhost.localdomain 4.18.0-80.11.2 阅读全文

posted @ 2020-04-30 14:59 trp 阅读(1452) 评论(0) 推荐(0)

centos8安装xmind8
摘要:下载安装包https://www.xmind.cn/xmind8-pro/ 创建安装目录 [root@localhost tushare]# mkdir -p /usr/local/xmind 解压xmind安装包到安装目录 (base) [root@localhost tushare]# cd / 阅读全文

posted @ 2020-04-19 10:08 trp 阅读(454) 评论(0) 推荐(0)

查询表中最新一期资产负债率 ERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column
摘要:mysql> select ts_code, max(end_date), debt_to_assets from tushare.fina_indicator group by ts_code; ERROR 1055 (42000): Expression #2 of SELECT list is 阅读全文

posted @ 2020-04-18 10:53 trp 阅读(286) 评论(0) 推荐(0)

centos8下给mysql设置密码
摘要:(base) [root@localhost tushare]# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 13 Server version: 8.0.17 阅读全文

posted @ 2020-04-17 16:09 trp 阅读(3506) 评论(0) 推荐(0)

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
摘要:create table fina_indicator(ts_code varchar(20) comment 'TS代码',ann_date date comment '公告日期',end_date date comment '报告期', ..... 报错信息:ERROR 1064 (42000) 阅读全文

posted @ 2020-04-17 14:59 trp 阅读(30769) 评论(0) 推荐(2)

申万行业指数数据获取
摘要:tushare里申万行业指数不能获取,采用如下的办法获取数据。 https://zhuanlan.zhihu.com/p/44165049 OpenDataTools通过swindex接口,支持申万指数数据的获取,要求版本0.6.0以上。 数据来源:申万研究所(http://www.swsindex 阅读全文

posted @ 2020-04-16 21:14 trp 阅读(5396) 评论(0) 推荐(0)

cannot edit in read-only editor
摘要:vscode 程序运行时报错: 原因 使用了runcode插件 这个错误一般出现在使用命令行输入的时候出现。 但是output页面是只读的,只能输出,不能用来输入。 解决 解放方法是,将run code设置为在Teminal中运行: File -> Preferences -> Settings 找 阅读全文

posted @ 2020-04-04 09:01 trp 阅读(1481) 评论(0) 推荐(0)

mysql报错: DataError: (pymysql.err.DataError) (1406, "Data too long for column 'name' at row 746")
摘要:报错内容: DataError: (pymysql.err.DataError) (1406, "Data too long for column 'name' at row 746")[SQL: INSERT INTO index_basic (ts_code, name, market, pub 阅读全文

posted @ 2020-04-01 12:55 trp 阅读(1290) 评论(0) 推荐(0)

mysql IntegrityError: (pymysql.err.IntegrityError) (1062, "Duplicate entry '000001.SZ-2018-07-02' for key 'PRIMARY'")
摘要:IntegrityError: (pymysql.err.IntegrityError) (1062, "Duplicate entry '000001.SZ-2018-07-02' for key 'PRIMARY'")[SQL: INSERT INTO stock_daily_basic (ts 阅读全文

posted @ 2020-04-01 10:00 trp 阅读(1869) 评论(0) 推荐(0)

导航