摘要:
因为之前的数据都是txt格式的,我们需要自己改成数据库脚本。 当然,也可以直接操作,借用接口写入,在一万条数据以内完全ok,代码如下: (记得提前添加依赖库) using System; using MySql.Data.MySqlClient; using System.IO; namespace 阅读全文
posted @ 2020-07-31 15:50
月光魔草
阅读(1757)
评论(0)
推荐(0)
|
摘要:
因为之前的数据都是txt格式的,我们需要自己改成数据库脚本。 当然,也可以直接操作,借用接口写入,在一万条数据以内完全ok,代码如下: (记得提前添加依赖库) using System; using MySql.Data.MySqlClient; using System.IO; namespace 阅读全文
posted @ 2020-07-31 15:50
月光魔草
阅读(1757)
评论(0)
推荐(0)
摘要:
以下代码用来爬取近30年来地震数据,实际运行时间为4.5小时(博主电脑配置较低) static void Main(string[] args) { FileStream fw = new FileStream("1.txt", FileMode.OpenOrCreate); FileStream 阅读全文
posted @ 2020-07-31 15:42
月光魔草
阅读(663)
评论(0)
推荐(0)
|