2021年11月25日

会计名家培养工程入围人员名单

摘要: 2014年会计名家培养工程入围人员名单 (按姓氏拼音首字母排序) 蔡 春 西南财经大学科研处处长 教授 博导 戴德明 中国人民大学商学院 教授 博导 刘 锋 厦门大学管理学院副院长 教授 博导 刘明辉 东北财经大学会计学院 教授 博导 大家出版传媒(大连)股份有限公司总编辑 吴联生 北京大学光华管理 阅读全文

posted @ 2021-11-25 08:56 trp 阅读(243) 评论(0) 推荐(0) 编辑

2021年11月16日

ubuntu下双显示器设置

摘要: 第一步: 打开终端,输入指令:xrandr 查看显示器链接端口名称 我的两个屏幕分别是DVI-I-1 和 DVI-D-1 第二步: xrandr --output DVI-D-1 --auto --primary 这里是选择其中一个显示器(我选的HDMI-0),将其设置为主屏幕(primary是设置 阅读全文

posted @ 2021-11-16 22:28 trp 阅读(1519) 评论(0) 推荐(0) 编辑

C语言错误集合

摘要: 1 #include <stdio.h> 2 3 int main() 4 { 5 int i = 5; ✹ 6 printf("%d %d\n",i); / * wrong */ 7 return 0; 8 } View Code trp@DESKTOP-ET7Q9JO:~$ gcc -o t1 阅读全文

posted @ 2021-11-16 18:25 trp 阅读(23) 评论(0) 推荐(0) 编辑

计算机专业路线图

摘要: 全面、系统的计算机知识体系! 专业基础课、专业必修课和专业选修课。 先从课程上做一个分类,按照先修关系进行整理,形成课程体系,接下来,再把学习过程分成不同的阶段: 第1阶段:学习程序设计基础、面向对象程序设计、离散数学三门专业基础课 第2阶段:学习数据结构、算法设计与分析、计算机组成原理三门专业必修 阅读全文

posted @ 2021-11-16 09:04 trp 阅读(692) 评论(0) 推荐(0) 编辑

2021年10月12日

处理时间序列

摘要: datetime模块 Python基本的日期与时间功能都在标准库的datetime模块中。 主要的类 可对date、time、datetime三种时间模式进行单独管理datetime.date() 处理日期(年月日)datetime.time() 处理时间(时分秒、毫秒)datetime.datet 阅读全文

posted @ 2021-10-12 09:12 trp 阅读(110) 评论(0) 推荐(0) 编辑

2021年3月27日

ubuntu 20.04 lts安装中文输入法

摘要: ubuntu 20.04 lts,按照这个方案成功,其他方案不行 安装指令: sudo apt-get install language-pack-zh-hans sudo apt-get install fcitx-googlepinyin 配置: 1、搜索框输入:Language Support 阅读全文

posted @ 2021-03-27 10:11 trp 阅读(528) 评论(0) 推荐(0) 编辑

2021年3月1日

Pandas 自动分割汇总表写入到子表

摘要: https://mp.weixin.qq.com/s/XY1lS4mxEf7BTf8UnFmaFA 根据汇总表的分区字段自动填入指定的分区文件中: 对于分区表的文件,例如A区.xlsx、B区.xlsx等,需要先将3行之后已经存在的数据删除后再进行写入。 B区.xlsx在自动填入后,结果如下: 其实初 阅读全文

posted @ 2021-03-01 18:47 trp 阅读(205) 评论(0) 推荐(0) 编辑

2021年2月21日

openpyxl

摘要: 一、openpyxl的介绍和安装 1.介绍 openpyxl是一个用来读写xlsx文件的Python库,官方文档https://openpyxl.readthedocs.io/en/stable/tutorial.html. 在使用openpyxl前先要掌握三个对象,即:Workbook(工作簿,一 阅读全文

posted @ 2021-02-21 19:44 trp 阅读(1087) 评论(1) 推荐(1) 编辑

2021年2月18日

SELECT LIKE

摘要: LIKE语句的语法格式是:select * from 表名 where 字段名 like 对应值(子串),它主要是针对字符型字段的,它的作用是在一个字符型字段列中检索包含对应子串的。 A:% 包含零个或多个字符的任意字符串: 1、LIKE'Mc%' 将搜索以字母 Mc 开头的所有字符串(如 McBa 阅读全文

posted @ 2021-02-18 15:49 trp 阅读(126) 评论(0) 推荐(0) 编辑

使用Pandas进行数据匹配

摘要: Pandas中的merge函数类似于Excel中的Vlookup,可以实现对两个数据表进行匹配和拼接的功能。与Excel不同之处在于merge函数有4种匹配拼接模式,分别为inner,left,right和outer模式。 其中inner为默认的匹配模式。本篇文章我们将介绍merge函数的使用方法和 阅读全文

posted @ 2021-02-18 15:30 trp 阅读(2508) 评论(0) 推荐(1) 编辑

2021年2月3日

Navicat oracle ORA-28547:connection to server failed

摘要: 版本信息:Navicat Premium 15.0.12 错误情况: 用Navicat连接Oracle数据库时报错ORA-28547:connection to server failed,probable Oracle Net admin error 解决方案: 1、到下面网址下载OCI http 阅读全文

posted @ 2021-02-03 13:19 trp 阅读(378) 评论(0) 推荐(0) 编辑

2021年1月13日

python文件操作

摘要: 批量给文件改后缀名 爬取的文件全部后缀为xlsx,结果有的文件打不开,原因是这些文件是xls格式,因此将xlsx统一改为xls import os root = r'D:\bondtest' with os.scandir(r'D:\bondtest') as files: for file in 阅读全文

posted @ 2021-01-13 09:31 trp 阅读(83) 评论(0) 推荐(0) 编辑

pandas处理excel

摘要: 一、excel数据的读取与保存 读取 简单文件 import pandas as pd #pandas是数据处理模块,import是导入,as pd是命名别名 amazon_data = pd.read_excel(r'D:\data\python\amazon-fine-foods\amazon_ 阅读全文

posted @ 2021-01-13 09:29 trp 阅读(289) 评论(0) 推荐(0) 编辑

Flask资源

摘要: 网站: http://helloflask.com/ 李辉个人网站 https://gallery.pyecharts.org/ pyecharts示例 https://www.kesci.com/mw/project/5eb7958f366f4d002d783d4a pyecharts教程 书籍: 阅读全文

posted @ 2021-01-13 09:25 trp 阅读(77) 评论(0) 推荐(0) 编辑

2021年1月11日

ImportError: DLL load failed while importing _ssl: 找不到指定的模块。 Failed

摘要: 原因分析 Anaconda 路径 C:\Users\username\Anaconda3\Library\bin 没有添加到 Windows 系统环境变量中 解决方法 在 Windows 环境变量中添加如下三项: C:\Users\username\Anaconda3 C:\Users\userna 阅读全文

posted @ 2021-01-11 08:38 trp 阅读(9066) 评论(0) 推荐(2) 编辑

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

摘要: 错误信息: C:\Users\taorp>pip install pipenvWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not availab 阅读全文

posted @ 2021-01-11 08:29 trp 阅读(5388) 评论(0) 推荐(0) 编辑

2020年12月2日

selenium 安装与 chromedriver安装

摘要: 安装selenium selenium可以直接可以用pip安装。 pip install selenium 安装chromedriver 下载 chromedriver的版本一定要与Chrome的版本一致,不然就不起作用。 有两个下载地址: 1、http://chromedriver.storage 阅读全文

posted @ 2020-12-02 08:47 trp 阅读(119) 评论(0) 推荐(0) 编辑

2020年9月28日

ubuntu 更换清华源

摘要: 1.备份ubuntu 中/etc/apt/sources.list trp@DESKTOP-ET7Q9JO:~$ cd /etc/apt/ trp@DESKTOP-ET7Q9JO:/etc/apt$ sudo cp sources.list sources.list.bak 2 查看ubuntu版本 阅读全文

posted @ 2020-09-28 17:03 trp 阅读(1891) 评论(0) 推荐(0) 编辑

查看ubuntu版本

摘要: 简单的 在命令终端输入 1.cat /etc/issue (简单)2.cat /etc/lsb-release(具体)3.uname -a(内核) 具体的 有时候我们安装软件或者搭建服务的时候,需要了解当前系统的版本信息,下面几个命令可以帮助我们查看当前ubuntu系统的版本信息。 一:利用命令: 阅读全文

posted @ 2020-09-28 16:47 trp 阅读(496) 评论(0) 推荐(0) 编辑

2020年7月19日

运行spark时提示 env: ‘python’: No such file or directory

摘要: 运行spark时提示如下信息: hadoop@MS-YFYCEFQFDMXS:/home/trp$ cd /usr/local/spark hadoop@MS-YFYCEFQFDMXS:/usr/local/spark$ ./bin/pyspark env: ‘python’: No such fi 阅读全文

posted @ 2020-07-19 21:46 trp 阅读(1474) 评论(0) 推荐(0) 编辑

2020年4月30日

centos8删除开机菜单选项

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

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

2020年4月19日

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 阅读(433) 评论(0) 推荐(0) 编辑

2020年4月18日

查询表中最新一期资产负债率 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 阅读(241) 评论(0) 推荐(0) 编辑

2020年4月17日

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 阅读(3457) 评论(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 阅读(26626) 评论(0) 推荐(2) 编辑

2020年4月16日

申万行业指数数据获取

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

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

2020年4月4日

cannot edit in read-only editor

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

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

2020年4月1日

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 阅读(1236) 评论(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 阅读(1737) 评论(0) 推荐(0) 编辑

2020年3月31日

解决Mysql (1064) 错误: 1064 - You have an error in your SQL syntax;

摘要: 执行下面的sql语句报错: insert into stock_daily( ts_code, trade_date, open, high, low, close, pre_close, change, pct_chg, vol, amount) values ( %s,%s,%s,%s,%s,% 阅读全文

posted @ 2020-03-31 21:08 trp 阅读(8935) 评论(0) 推荐(1) 编辑

2020年3月27日

centos下查看硬件信息

摘要: 字符终端电传打字机 teletypewriter 简写tty 了解系统状态 who :确定谁在系统中uptime :了解系统启动时间和忙碌程度top :列出 资源占用排名靠前的进程free :了解内存使用情况vmstat : 了解系统负载情况 查看硬件信息 # 总核数 = 物理CPU个数 X 每颗物 阅读全文

posted @ 2020-03-27 10:37 trp 阅读(529) 评论(0) 推荐(0) 编辑

2020年3月26日

Centos下在jupyter notebook中打开新的ipynb文件

摘要: 第一步:鼠标点击进入想要打开的ipynb文件夹下面 第二步:在空白处点击鼠标右键,选择“在终端打开(E)“,打开终端 第三步:输入命令 # jupyter notebook --allow-root 然后在jupyter中就可以看到目录下的ipynb文件了 阅读全文

posted @ 2020-03-26 16:53 trp 阅读(813) 评论(0) 推荐(0) 编辑

2020年3月20日

CentOS下C++开发环境搭建

摘要: yum install XXX vim 编辑工具g++ 编译器git 版本控制gdb 调试工具cmake 跨平台构建工具 vim插件的安装 #git clone https://gitee.com/chxuan/vimplus.git ~/.vimplus # cd ~/.vimplus # ./i 阅读全文

posted @ 2020-03-20 19:30 trp 阅读(2631) 评论(0) 推荐(0) 编辑

2020年3月6日

sys.argv[]的用法

摘要: https://www.cnblogs.com/aland-1415/p/6613449.html 下面我们通过一个极简单的test.py程序的运行结果来说明它的用法。 1 #test.py 2 3 import sys 4 a=sys.argv[0] 5 print(a) 将test.py保存在c 阅读全文

posted @ 2020-03-06 14:07 trp 阅读(126) 评论(0) 推荐(0) 编辑

2020年2月26日

中医知识

摘要: 中医中的时间空间体系 1、为什么中医中方位是上南下北,左东右西?东南西北是如何确定的? 我们如何快速判定东西南北? 我们住在北半球,1、从早至晚,太阳总是在南方,从东方升起划过天空由西方落下,并在中午位于正南。2、太阳照射留下的影子,从早至晚,影子总是在北方,由西向东在地面上滑动,并在中午指向正北。 阅读全文

posted @ 2020-02-26 17:24 trp 阅读(377) 评论(0) 推荐(0) 编辑

2020年1月10日

操作系统之哲学原理(第2版)

摘要: 第一篇 基础原理篇 中断是操作系统获得计算机控制权的根本保证。若没有中断,很难想象操作系统能够完成人们所赋予的任务。中断的基本原理是:设备在完成自己的任务后向CPU发出中断,CPU判断优先级,然后确定是否 响应。如果响应,则执行中断服务程序,并在中断服务程序执行完后继续执行原来的程序。 内核态和用户 阅读全文

posted @ 2020-01-10 20:14 trp 阅读(1097) 评论(0) 推荐(0) 编辑

CentOS8下安装CUDA 10.2

摘要: 第一步:先安装好nvidia驱动 第二步:打开终端,输入命令:nvcc --version,查看是否安装了cuda 运行命令:nvidia-smi 可以看到CUDA Version:10.2 第三步:入官网下载cuda10.2版本,按下面选好后,会给出安装命令 wget http://develop 阅读全文

posted @ 2020-01-10 12:59 trp 阅读(8989) 评论(0) 推荐(0) 编辑

CentOS8下安装Geforce GTX 650驱动

摘要: 第一步:查看显卡类型 [root@localhost ~]# lshw -numeric -C display 显示显卡类型:product: GK107 [GeForce GTX 650] [10DE:FC6] 显示驱动是nouveau:configuration: driver=nouveau 阅读全文

posted @ 2020-01-10 11:32 trp 阅读(2772) 评论(3) 推荐(0) 编辑

2020年1月9日

CentOS8下安装mysql8

摘要: 安装Yum Repository [root@localhost ~]# wget https://repo.mysql.com//mysql80-community-release-el8-1.noarch.rpm 使用rpm来安装MySQL[root@localhost ~]# rpm -ivh 阅读全文

posted @ 2020-01-09 21:12 trp 阅读(32079) 评论(1) 推荐(1) 编辑

Git使用

摘要: 安装 : # yum install git 使用 Git 来获取 Git 的升级:# git clone git://git.kernel.org/pub/scm/git/git.git 初次运行 Git 前的配置 用户信息设置 [root@localhost ~]# git config --g 阅读全文

posted @ 2020-01-09 20:30 trp 阅读(173) 评论(0) 推荐(0) 编辑

导航