摘要: “_”:以单下划线开头的表示的是protected类型的变量,即只能允许其本身与子类进行访问;同时表示弱内部变量标示,如,当使用"from moduleNmae import *"时,不会将以一个下划线开头的对象引入。“__”:双下划线的表示的是私有类型的变量。只能是允许这个类本身进行访问了,连子类 阅读全文
posted @ 2025-03-28 13:47 Young_Mo 阅读(2) 评论(0) 推荐(0) 编辑
摘要: from pyspark.sql.functions import get_json_object, col,from_unixtime, instr, length, regexp_replace, explode, from_json from pyspark.sql.types import 阅读全文
posted @ 2024-11-07 15:57 Young_Mo 阅读(14) 评论(0) 推荐(0) 编辑
摘要: http://pypi.douban.com/simple/ 豆瓣http://mirrors.aliyun.com/pypi/simple/ 阿里http://pypi.hustunique.com/simple/ 华中理工大学http://pypi.sdutlinux.org/simple/ 山 阅读全文
posted @ 2024-10-30 14:18 Young_Mo 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(230) 评论(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 阅读(45) 评论(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 阅读(124) 评论(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 阅读(194) 评论(0) 推荐(0) 编辑
摘要: select * from addr_tmp at2 where addr ~ '[\uFF00-\uFFFF]' 匹配所有全角字符 匹配全角数字 '[\uFF10-\uFF19]' 阅读全文
posted @ 2023-02-01 15:43 Young_Mo 阅读(29) 评论(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 阅读(354) 评论(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 阅读(38) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示