-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmapping.py
More file actions
1367 lines (1212 loc) · 35.1 KB
/
mapping.py
File metadata and controls
1367 lines (1212 loc) · 35.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 中文Python关键词映射
# 关键词映射
PY_MAPPING = {
# 控制流 - 多种表达方式
# if 系列
"如果": "if",
"若": "if",
"若是": "if",
"假如": "if",
"倘若": "if",
# elif 系列
"否则如果": "elif",
"或者如果": "elif",
"不然如果": "elif",
"要不然如果": "elif",
# else 系列
"否则": "else",
"不然": "else",
"要不然": "else",
"反之": "else",
# for 系列
"对于": "for",
"遍历": "for",
"循环": "for",
"迭代": "for",
"遍访": "for",
"历遍": "for",
"轮询": "for",
"逐个": "for",
"逐一": "for",
"依次": "for",
"每当": "for",
"每一个": "for",
"逐项": "for",
"取遍": "for",
"历数": "for",
"依序": "for",
"按序": "for",
# in 系列
"在": "in",
"属于": "in",
"存在于": "in",
"里面": "in",
"之中": "in",
"其中": "in",
"中的": "in",
"包含于": "in",
"位于": "in",
"处于": "in",
"范围内": "in",
"集合中": "in",
"内部": "in",
# while 系列
"当": "while",
"当循环": "while",
"只要": "while",
"循环当": "while",
"周而复始": "while",
"循环往复": "while",
"不断重复": "while",
"重复执行": "while",
"持续": "while",
"一直": "while",
"直到": "while",
"当条件": "while",
"循环直到": "while",
"持续循环": "while",
"不停": "while",
"连续": "while",
# continue, break 系列
"跳过": "continue",
"继续": "continue",
"略过": "continue",
"下一个": "continue",
"略过此节": "continue",
"略过此轮": "continue",
"且看下回": "continue",
"进行下一轮": "continue",
"忽略剩余": "continue",
"转入下轮": "continue",
"跳至下一轮": "continue",
"忽略本次": "continue",
"放弃本轮": "continue",
"中断": "break",
"跳出": "break",
"终止": "break",
"停止": "break",
"中止": "break",
"点到为止": "break",
"到此为止": "break",
"结束循环": "break",
"跳出循环": "break",
"跳离循环": "break",
"脱离循环": "break",
"离开循环": "break",
"不再循环": "break",
# return 系列
"返回": "return",
"回传": "return",
"输出": "return",
# lambda 系列
"匿名函数": "lambda",
"匿名": "lambda",
"短函数": "lambda",
"内联函数": "lambda",
"简函数": "lambda",
"快函数": "lambda",
"微函数": "lambda",
# 异常处理
"尝试": "try",
"试着": "try",
"测试": "try",
"捕获": "except",
"异常": "except",
"例外": "except",
"错误": "except",
"最后": "finally",
"善后": "finally",
"无论如何": "finally",
"总是执行": "finally",
"清理": "finally",
# 常见异常类型
"值错误": "ValueError",
"类型错误": "TypeError",
"索引错误": "IndexError",
"键错误": "KeyError",
"文件未找到错误": "FileNotFoundError",
"导入错误": "ImportError",
"零除错误": "ZeroDivisionError",
"属性错误": "AttributeError",
"名称错误": "NameError",
"语法错误": "SyntaxError",
"缩进错误": "IndentationError",
"溢出错误": "OverflowError",
"运行时错误": "RuntimeError",
"内存错误": "MemoryError",
# 函数与类
"定义": "def",
"函数": "def",
"方法": "def",
"类": "class",
"对象类": "class",
"模型": "class",
# 逻辑运算符
# and 系列
"且": "and",
"并且": "and",
"同时": "and",
"与": "and",
# or 系列
"或": "or",
"或者": "or",
"亦或": "or",
"或是": "or",
# not 系列
"非": "not",
"不": "not",
"不是": "not",
"取反": "not",
# is 系列
"是": "is",
"为": "is",
"等于": "is",
# is not 系列
"不是": "is not",
"不等于": "is not",
"不为": "is not",
# 比较运算符
"大于": ">",
"小于": "<",
"大于等于": ">=",
"小于等于": "<=",
"等于": "==",
"不等于": "!=",
# 内置函数
# 基础输入输出
"打印": "print",
"显示": "print",
"写出": "print",
"输入": "input",
"读取": "input",
"接收": "input",
"获取输入": "input",
# 内置函数 - 类型相关
"类型": "type",
"获取类型": "type",
"判断类型": "type",
# 数据结构和序列
"范围": "range",
"区间": "range",
"序列": "range",
"数列": "range",
"长度": "len",
"计数": "len",
"数量": "len",
"个数": "len",
"枚举": "enumerate",
"索引序列": "enumerate",
"带序号": "enumerate",
"映射": "map",
"遍历映射": "map",
"变换": "map",
"过滤": "filter",
"筛选": "filter",
"压缩": "zip",
"配对": "zip",
"合并序列": "zip",
"排序": "sorted",
"排列": "sorted",
"排序列表": "sorted",
"反转": "reversed",
"倒序": "reversed",
"逆序": "reversed",
# 数据结构方法
"添加": "append",
"追加": "append",
"增加": "append",
"插入": "insert",
"插入位置": "insert",
"置入": "insert",
"扩展": "extend",
"连接": "extend",
"合并": "extend",
"移除": "remove",
"删除元素": "remove",
"去除": "remove",
"弹出": "pop",
"取出": "pop",
"删除并返回": "pop",
"清空": "clear",
"清除": "clear",
"全部删除": "clear",
"索引": "index",
"查找位置": "index",
"定位": "index",
"计数": "count",
"统计": "count",
"出现次数": "count",
"复制": "copy",
"拷贝": "copy",
"克隆": "copy",
"获取": "get",
"获取值": "get",
"取值": "get",
"键值对": "items",
"所有项": "items",
"键值项": "items",
"所有键": "keys",
"键列表": "keys",
"获取键": "keys",
"所有值": "values",
"值列表": "values",
"获取值列表": "values",
"更新": "update",
"合并字典": "update",
"更新字典": "update",
# 类型转换
"整数": "int",
"转整数": "int",
"取整": "int",
"浮点": "float",
"小数": "float",
"浮点数": "float",
"字符串": "str",
"文本": "str",
"字符列": "str",
"列表": "list",
"表": "list",
"数组": "list",
"字典": "dict",
"映射表": "dict",
"键值对": "dict",
"集合": "set",
"无序集": "set",
"不重复集": "set",
"元组": "tuple",
"不可变序列": "tuple",
"固定序列": "tuple",
"布尔": "bool",
"真假": "bool",
"逻辑值": "bool",
# 数学函数
"绝对值": "abs",
"取绝对值": "abs",
"最大值": "max",
"最大": "max",
"取最大": "max",
"最小值": "min",
"最小": "min",
"取最小": "min",
"求和": "sum",
"合计": "sum",
"总和": "sum",
"四舍五入": "round",
"舍入": "round",
# 其他
# 模块和包
"导入": "import",
"引入": "import",
"加载": "import",
"引用": "import",
"从": "from",
"来自": "from",
"自": "from",
"作为": "as",
"别名": "as",
"命名为": "as",
# 布尔值与空值
"真": "True",
"是的": "True",
"对": "True",
"正确": "True",
"假": "False",
"否": "False",
"错": "False",
"错误": "False",
"空": "None",
"无": "None",
"空值": "None",
"未定义": "None",
# 作用域与流程控制
"全局": "global",
"全局变量": "global",
"全局作用域": "global",
# nonlocal 系列
"非局部": "nonlocal",
"外层变量": "nonlocal",
"外部变量": "nonlocal",
"上层作用域": "nonlocal",
"上层变量": "nonlocal",
"引用外部": "nonlocal",
"使用外部": "nonlocal",
"局部": "local",
"局部变量": "local",
"断言": "assert",
"检查": "assert",
"确认": "assert",
"生成": "yield",
"产出": "yield",
"让出": "yield",
"通过": "pass",
"跳过语句": "pass",
"空语句": "pass",
"删除": "del",
"移除": "del",
"去除": "del",
"抛出": "raise",
"抛出异常": "raise",
"引发": "raise",
# 运算符与特殊符号
"加": "+",
"减": "-",
"乘": "*",
"除": "/",
"取整除": "//",
"整除": "//",
"取模": "%",
"取余": "%",
"求余": "%",
"幂": "**",
"指数": "**",
"次方": "**",
# print参数
"结束": "end",
# 装饰器
"装饰器": "@",
"修饰器": "@",
# 文件操作
"打开": "open",
"与": "with",
"使用": "with",
"借助": "with",
"利用": "with",
"伴随": "with",
"携带": "with",
"处理上下文": "with",
"上下文管理": "with",
"资源管理": "with",
# 文件模式
"读模式": "r",
"写模式": "w",
"追加模式": "a",
"二进制模式": "b",
"文本模式": "t",
"读写模式": "r+",
# 文件方法
"读取": "read",
"读一行": "readline",
"读所有行": "readlines",
"写入": "write",
"写入行": "writelines",
"关闭": "close",
"刷新": "flush",
"定位": "seek",
"获取位置": "tell",
# 网络编程
"网络": "network",
"套接字": "socket",
"服务器": "server",
"客户端": "client",
"主机": "host",
"端口": "port",
"地址": "address",
"IP地址": "ip_address",
"域名": "domain",
"URL": "url",
"HTTP": "http",
"HTTPS": "https",
"FTP": "ftp",
"SSH": "ssh",
"TCP": "tcp",
"UDP": "udp",
"请求": "request",
"响应": "response",
"GET请求": "get",
"POST请求": "post",
"PUT请求": "put",
"DELETE请求": "delete",
"头部": "headers",
"内容类型": "content_type",
"状态码": "status_code",
"认证": "authentication",
"授权": "authorization",
"Cookie": "cookie",
"会话": "session",
"连接": "connection",
"连接池": "connection_pool",
"超时": "timeout",
"重试": "retry",
"代理": "proxy",
"网络爬虫": "web_crawler",
"API": "api",
"REST": "rest",
"JSON": "json",
"XML": "xml",
"WebSocket": "websocket",
"异步IO": "asyncio",
# JSON处理
"解析JSON": "json.loads",
"转为JSON": "json.dumps",
"读取JSON文件": "json.load",
"写入JSON文件": "json.dump",
# 路径操作
"路径连接": "os.path.join",
"文件存在": "os.path.exists",
"是目录": "os.path.isdir",
"是文件": "os.path.isfile",
"获取大小": "os.path.getsize",
"获取修改时间": "os.path.getmtime",
"获取路径": "os.path.abspath",
"获取文件名": "os.path.basename",
"获取目录名": "os.path.dirname",
# 特殊方法
"初始化": "__init__",
"构造": "__init__",
"字符表示": "__str__",
"表示": "__repr__",
"长度": "__len__",
"调用": "__call__",
"迭代器": "__iter__",
"超类": "super",
"父类": "super",
"基类": "super",
# 特殊属性
"吾": "self",
"予": "self",
"自身": "self",
"本身": "self",
"自己": "self",
"此对象": "self",
"在下": "self",
"本实例": "self",
"本类实例": "self",
"当前实例": "self",
"当前对象": "self",
"我": "self",
"俺": "self",
"咱": "self",
"本尊": "self",
"吾身": "self",
"小生": "self",
"贫道": "self",
"老衲": "self",
"老朽": "self",
"鄙人": "self",
# 面向对象编程
"继承": "inherit",
"多态": "polymorphism",
"封装": "encapsulation",
"抽象": "abstraction",
"实例": "instance",
"对象": "object",
"属性": "attribute",
"方法": "method",
"静态方法": "@staticmethod",
"类方法": "@classmethod",
"抽象方法": "@abstractmethod",
"私有": "private",
"保护": "protected",
"公开": "public",
"构造函数": "__init__",
"析构函数": "__del__",
"实现": "implement",
"接口": "interface",
# 列表方法 (恢复被误删的内容)
"添加": "append",
"追加": "append",
"增加": "append",
# 数据科学
"数据框": "DataFrame",
"系列": "Series",
"读取CSV": "pd.read_csv",
"读取Excel": "pd.read_excel",
"分组": "groupby",
"聚合": "aggregate",
"透视表": "pivot_table",
"合并": "merge",
"连接": "concat",
"描述统计": "describe",
"均值": "mean",
"中位数": "median",
"标准差": "std",
"最大值": "max",
"最小值": "min",
"求和": "sum",
"计数": "count",
"唯一值": "unique",
"空值": "na",
"缺失值": "null",
"填充": "fillna",
"丢弃": "dropna",
"替换": "replace",
"排序": "sort",
"绘图": "plot",
"直方图": "hist",
"散点图": "scatter",
"折线图": "line",
"条形图": "bar",
"箱线图": "box",
# Web开发
"路由": "route",
"请求": "request",
"响应": "response",
"会话": "session",
"表单": "form",
"重定向": "redirect",
"模板": "template",
"渲染": "render",
"视图": "view",
"控制器": "controller",
"模型": "model",
"静态文件": "static",
"蓝图": "blueprint",
"中间件": "middleware",
"认证": "auth",
"授权": "authorization",
"登录": "login",
"注册": "register",
"登出": "logout",
"数据库": "database",
"数据存储": "database",
"数据仓库": "database",
"数据管理系统": "database",
"查询": "query",
"检索": "query",
"数据查询": "query",
"搜索数据": "query",
"插入": "insert",
"新增": "insert",
"添加记录": "insert",
"增加数据": "insert",
"录入": "insert",
"更新": "update",
"修改": "update",
"更改": "update",
"变更数据": "update",
"删除": "delete",
"移除": "delete",
"清除记录": "delete",
"抹去数据": "delete",
"选择": "select",
"筛选": "select",
"提取": "select",
"获取字段": "select",
"从": "from",
"where子句": "where",
"分组依据": "group by",
"排序依据": "order by",
"连接": "join",
"左连接": "left join",
"右连接": "right join",
"内连接": "inner join",
"外连接": "outer join",
# 高级Python特性
"生成器": "generator",
"迭代器": "iterator",
"装饰器": "decorator",
"上下文管理器": "context manager",
"异步": "async",
"非同步": "async",
"并发执行": "async",
"异步执行": "async",
"等待": "await",
"异步等待": "await",
"等候": "await",
"暂停等待": "await",
"挂起等待": "await",
"并发": "concurrent",
"协程": "coroutine",
"并行": "parallel",
"线程": "thread",
"进程": "process",
"锁": "lock",
"信号量": "semaphore",
"事件": "event",
"队列": "queue",
"通道": "channel",
"异步IO": "asyncio",
"异步函数": "async def",
"异步等待": "await",
"异步循环": "async for",
"异步with": "async with",
"生成器表达式": "generator expression",
"列表推导式": "list comprehension",
"字典推导式": "dict comprehension",
"集合推导式": "set comprehension",
"元组拆包": "tuple unpacking",
"星号拆包": "*args",
"双星号拆包": "**kwargs",
"类型注解": "type annotation",
"数据类": "dataclass",
"属性": "property",
"描述符": "descriptor",
"元类": "metaclass",
"抽象基类": "abc",
"虚拟环境": "venv",
"包管理器": "pip",
"单元测试": "unittest",
"文档测试": "doctest",
"性能分析": "profile",
# 常用包
"数值计算": "numpy",
"数据分析": "pandas",
"可视化": "matplotlib",
"科学计算": "scipy",
"机器学习": "scikit-learn",
"深度学习": "tensorflow",
"神经网络": "pytorch",
"自然语言处理": "nltk",
"计算机视觉": "opencv",
"网络请求": "requests",
"网络爬虫": "scrapy",
"网页解析": "beautifulsoup",
"接口开发": "flask",
"网站开发": "django",
"快速开发": "fastapi",
"GUI开发": "tkinter",
"游戏开发": "pygame",
"数据库操作": "sqlalchemy",
"日期时间": "datetime",
"正则表达式": "re",
"日志记录": "logging",
"配置解析": "configparser",
"命令行": "argparse",
"系统操作": "os",
"路径操作": "pathlib",
"文件操作": "io",
"压缩文件": "zipfile",
"序列化": "pickle",
# 具有中国特色的关键词表达
# 控制流
"倘若": "if",
"设若": "if",
"诚如": "if",
"若然": "if",
"但凡": "if",
"苟若": "if",
"倘使": "if",
"如若": "if",
"设使": "if",
"否则的话": "else",
"其他情况": "else",
"退而求其次": "else",
"否则然": "else",
"不然者": "else",
"不尔": "else",
"不若": "else",
"若非如此": "else",
"周而复始": "while",
"循环往复": "while",
"不断重复": "while",
"遍访": "for",
"历遍": "for",
"轮询": "for",
"中止": "break",
"点到为止": "break",
"到此为止": "break",
"略过此节": "continue",
"略过此轮": "continue",
"且看下回": "continue",
"回馈": "return",
"奉上": "return",
"献上": "return",
# 逻辑运算
"既": "and",
"亦": "and",
"并": "and",
"抑或": "or",
"要么": "or",
"二选一": "or",
"非也": "not",
"并非": "not",
"绝非": "not",
# 函数与类
"术": "def",
"法门": "def",
"招式": "def",
"流派": "class",
"门派": "class",
"派系": "class",
# 数据结构
"清单": "list",
"簿册": "list",
"名录": "list",
"字典册": "dict",
"对照表": "dict",
"查阅表": "dict",
# 输入输出
"显示于": "print",
"呈现": "print",
"道出": "print",
"询问": "input",
"请教": "input",
"求教": "input",
# 异常处理
"小心行事": "try",
"且试试": "try",
"姑且一试": "try",
"倘若有误": "except",
"若有差池": "except",
"若有闪失": "except",
"善后事宜": "finally",
"无论成败": "finally",
"皆须善后": "finally",
# 文件操作
"开卷": "open",
"阅览": "read",
"誊抄": "write",
"合卷": "close",
# 变量操作
"乃是": "=",
"即为": "=",
"定为": "=",
# 循环迭代
"其中每一": "for in",
"遍览": "for in",
"历数": "for in",
# 类方法
"本门方法": "@classmethod",
"门规": "@classmethod",
"师门心法": "@classmethod",
# Matplotlib可视化相关
"图像": "figure",
"子图": "subplot",
"绘图": "plot",
"散点图": "scatter",
"条形图": "bar",
"饼图": "pie",
"直方图": "hist",
"箱线图": "boxplot",
"等高线图": "contour",
"热图": "heatmap",
"标题": "title",
"横轴标签": "xlabel",
"纵轴标签": "ylabel",
"图例": "legend",
"网格": "grid",
"紧凑布局": "tight_layout",
"保存图像": "savefig",
"显示": "show",
"关闭": "close",
"轴方向": "axis",
"刻度": "tick",
"颜色条": "colorbar",
"注释": "annotate",
"文本": "text",
"样式": "style",
"子图网格": "subplots",
# Pandas和NumPy补充
"数组": "array",
"平方": "square",
"平均值": "mean",
"中值": "median",
"标准差": "std",
"方差": "var",
"随机数": "random",
"正态": "normal",
"均匀分布": "uniform",
"线性回归": "linregress",
"相关系数": "corrcoef",
"协方差": "cov",
"转置": "transpose",
"重塑": "reshape",
"拼接": "concatenate",
"切片": "slice",
"最大值索引": "argmax",
"最小值索引": "argmin",
"唯一值": "unique",
"值计数": "value_counts",
"分组": "groupby",
"聚合": "agg",
"排序": "sort_values",
"升序": "ascending",
"填充": "fillna",
"丢弃": "dropna",
"方法": "method",
"依据": "by",
"合并": "merge",
"连接": "join",
"透视表": "pivot_table",
"重置索引": "reset_index",
"设置索引": "set_index",
"采样": "sample",
"重命名": "rename",
"分箱": "cut",
"替换": "replace",
"应用函数": "apply",
"开方": "sqrt",
"立方": "cube",
"立方根": "cbrt",
"绝对值": "abs",
"对数": "log",
"自然对数": "log",
"以10为底对数": "log10",
"以2为底对数": "log2",
"指数": "exp",
"幂": "pow",
"正弦": "sin",
"余弦": "cos",
"正切": "tan",
"反正弦": "arcsin",
"反余弦": "arccos",
"反正切": "arctan",
"弧度转角度": "degrees",
"角度转弧度": "radians",
"双曲正弦": "sinh",
"双曲余弦": "cosh",
"双曲正切": "tanh",
"阶乘": "factorial",
"向上取整": "ceil",
"向下取整": "floor",
"四舍五入": "round",
"取整数部分": "trunc",
# 数据分析
"数据分析": "data_analysis",
"数据处理": "data_processing",
"数据清洗": "data_cleaning",
"数据可视化": "data_visualization",
"数据提取": "data_extraction",
"数据转换": "data_transformation",
"数据筛选": "data_filtering",
"数据聚合": "data_aggregation",
"数据分组": "data_grouping",
"数据归一化": "data_normalization",
"数据标准化": "data_standardization",
# JSON操作
"解析JSON": "json.loads",
"转为JSON": "json.dumps",
"解码JSON": "json.loads",
"编码JSON": "json.dumps",
"从文件读取JSON": "json.load",
"写入JSON到文件": "json.dump",
"JSON格式化": "json.dumps(indent=4)",
"JSON排序": "json.dumps(sort_keys=True)",
# 日期时间
"当前日期时间": "datetime.now()",
"今天": "date.today()",
"时间戳": "timestamp()",