- 博客(6)
- 收藏
- 关注
原创 win10 配置protobuf 并且在VScode中运行.proto代码
win10安装protobuf①进入github网址:https://github.com/protocolbuffers/protobuf/releases/tag/v3.18.1protobuf安装包找到protoc-3.18.1-win32.zip这个压缩包下载②解压后,在bin目录下找到protoc.exe文件③将protoc.exe文件复制到C:\Windows\System32目录下打开CMD,输入protoc --version运行查看版本出现如上提示则配置protobu
2021-10-09 20:03:41
4521
转载 电子邮件结构(学会读取和发送邮件之前必了解)
最近在用golang写一个爬取自己邮件信息的功能,由于对电子邮件的各种协议和结构不太了解,走了很多弯路,下面我分享一下从网上学习到电子邮件有关结构的知识:一封传统的电子邮件结构内容:From: “Tim” tim@example.comTo: “joe Zhang” zhang@example.comSubject: TestDate: Wed, 17 May 2020 12:02:29 -0400Message-ID: NDBBIAKOPKHFGPLCODIGIEKBCHAA.tim@exa
2021-09-20 20:18:32
1898
原创 golang使用Gin框架搭建服务器时报错go.mod file not found in current directory or any parent directory
golang使用Gin框架搭建服务器时报错go.mod file not found in current directory or any parent directory 找不到对应的包原因:没有生成go.mod文件在解决问题之前,确保系统环境变量有如下设置流程分析编写test.go文件package mainimport ( "github.com/gin-gonic/gin")func sayhello(c *gin.Context) { c.JSON(200, gin.
2021-08-09 19:20:48
2426
原创 用excel将xlsx文件转化为csv文件后,用python对csv文件进行遍历报错 invalid literal for int() with base 10: ‘‘
用excel将xlsx文件转化为csv文件后,用python对csv文件进行遍历报错 invalid literal for int() with base 10: ‘’我把xlsx转化成csv文件后运行读取代码filelists = open(csvfile).readlines()for line in filelists[1:]: line = line.strip().split(',') name = line[1] l
2021-03-02 00:39:51
434
原创 使用Pandas读入excel表格时出现xlrd 2.0.1之后版本不支持xlsx表格对象的问题
使用Pandas读入excel表格时出现xlrd 2.0.1之后版本不支持xlsx表格对象的问题import pandas as pdfp = pd.read_excel("./data.xlsx")运行代码后出现报错:ValueError: Your version of xlrd is 2.0.1. In xlrd >= 2.0, only the xls format is supported. Install openpyxl instead.出错的原因为xlrd2.0之后的版本不
2021-01-26 15:16:31
19873
9
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人