摘要: select table_name, column_name, data_type, udt_name, table_catalog, table_schema, table_name, column_name, ordinal_position, column_defaultfrom inform 阅读全文
posted @ 2023-11-14 17:35 Young_Mo 阅读(98) 评论(0) 推荐(0) 编辑
摘要: import scala.collection.immutable object chapter07_08 { def main(args: Array[String]): Unit = { println(multiTable()) } def makeRowSeq(row: Int) = for 阅读全文
posted @ 2023-06-13 10:22 Young_Mo 阅读(27) 评论(0) 推荐(0) 编辑
摘要: # 定义一个专门创建事件循环loop的函数,在另一个线程中启动它 def start_loop(loop): asyncio.set_event_loop(loop) loop.run_forever() @app.get("/addr") def index(adcode: str = None, 阅读全文
posted @ 2023-06-07 16:02 Young_Mo 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 数据处理把 list嵌套字段转成 pyspark dataframe # coding=utf-8 from pyspark.sql import SparkSession from pyspark.sql.types import * import pandas as pd from pyspar 阅读全文
posted @ 2023-04-25 10:11 Young_Mo 阅读(147) 评论(0) 推荐(0) 编辑
摘要: select * from addr_tmp at2 where addr ~ '[\uFF00-\uFFFF]' 匹配所有全角字符 匹配全角数字 '[\uFF10-\uFF19]' 阅读全文
posted @ 2023-02-01 15:43 Young_Mo 阅读(23) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "io/ioutil" ) func main() { dirName := "D:\\tmp\\20220314" //fmt.Println(dirName) res := FileList(dirName, 0) for _, file 阅读全文
posted @ 2022-03-16 14:50 Young_Mo 阅读(336) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/csv" "fmt" "os" "unsafe" ) func readCsv(fPath string) (ret []map[string]string) { file, err := os.Open(fPath) if err ! 阅读全文
posted @ 2022-03-16 14:49 Young_Mo 阅读(29) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/csv" "encoding/json" "fmt" "io" "os" "strconv" "strings" "time" ) func readCsvYield(fPath string, seq rune, printNum i 阅读全文
posted @ 2022-03-09 15:14 Young_Mo 阅读(270) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/csv" "fmt" "os" ) func readCsv(fPath string) (ret []map[string]string, k []string) { file, err := os.Open(fPath) if er 阅读全文
posted @ 2022-03-08 11:45 Young_Mo 阅读(312) 评论(0) 推荐(0) 编辑
摘要: import asyncio import aiofiles import time import csv import os async def main(out_path, infile, num=1000000): """ :param out_path: 输出文件路径 :param infi 阅读全文
posted @ 2021-12-17 10:14 Young_Mo 阅读(159) 评论(0) 推荐(0) 编辑