Luci-Code-Tools 2.2.7__tar.gz → 2.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Luci-Code-Tools
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: 一个简单的工具库 / A Eazy Tools Module
5
5
  Home-page: https://github.com/Luci-Code-2014
6
6
  Author: Luci_Code
7
7
  Author-email: 3967742419@qq.com
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
10
11
  Requires-Python: >=3.6
11
12
  Description-Content-Type: text/markdown
12
13
  License-File: LICENSE
@@ -20,7 +21,7 @@ Dynamic: license-file
20
21
  Dynamic: requires-python
21
22
  Dynamic: summary
22
23
 
23
- [![PyPI version](https://badge.fury.io/py/Luci_Code_Tools.svg)](https://pypi.org/project/Luci_Code_Tools/)
24
+ [![PyPI version](https://badge.fury.io/py/Luci\_Code_Tools.svg)](https://pypi.org/project/Luci\_Code_Tools/)
24
25
 
25
26
  [![Python Version](https://img.shields.io/badge/Python-3.6+-blue.svg)]()
26
27
 
@@ -50,7 +51,7 @@ Dynamic: summary
50
51
 
51
52
  **带有 *6* 个函数可使用**
52
53
 
53
- # Luci_Code_Tools 🔍
54
+ # Luci\_Code_Tools 🔍
54
55
 
55
56
  **代码花费 *9000+* 字符数**
56
57
 
@@ -76,13 +77,13 @@ Windows 设备信息: Windows 10 22H2
76
77
 
77
78
  # 作者 ヾ(≧▽≦*)o
78
79
 
79
- 作者名字叫: **Luci_Code**
80
+ 作者名字叫: **Luci\_Code**
80
81
 
81
82
  **2014** 年出生 🐱
82
83
 
83
- 此代码的编写者 : Luci_Code
84
+ 此代码的编写者 : Luci\_Code
84
85
 
85
- 此文档的编写者 : Luci_Code
86
+ 此文档的编写者 : Luci\_Code
86
87
 
87
88
  Github 链接: **https://github.com/Luci-Code-2014/**
88
89
 
@@ -92,7 +93,7 @@ Github 链接: **https://github.com/Luci-Code-2014/**
92
93
 
93
94
  项目文件夹 📂:
94
95
 
95
- Luci_code_tools.py | 代码主文件
96
+ Luci\_Code_tools.py | 代码主文件
96
97
 
97
98
  200+ 行数运行的代码文件 🐱
98
99
 
@@ -171,19 +172,19 @@ pip install <包名>==<版本号>
171
172
  # 注: 所有方式的示例函数为 color 函数
172
173
 
173
174
  # 导入
174
- import Luci_code_tools
175
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
175
+ import Luci_Code_tools
176
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
176
177
 
177
178
  # 导入 + as
178
- import Luci_code_tools as lct
179
+ import Luci_Code_tools as lct
179
180
  lct.color("HelloWorld", 32, None, 1, 2)
180
181
 
181
182
  # 引用
182
- from Luci_code_tools import color
183
+ from Luci_Code_tools import color
183
184
  color("HelloWorld", 32, None, 1, 2)
184
185
 
185
186
  # 引用 + as
186
- from Luci_code_tools import color as cl
187
+ from Luci_Code_tools import color as cl
187
188
  cl("HelloWorld", 32, None, 1, 2)
188
189
 
189
190
  ```
@@ -469,12 +470,12 @@ prompt 跟 data 参数是一个意思喵🐱
469
470
  | DeepSeek | 构建 & 打包 & 上传教程 |
470
471
  | DeepSeek | 提供改进意见 |
471
472
  | DeepSeek | 环境帮助 |
472
- | Luci_Code | 编写 |
473
- | Luci_Code | 打包 |
474
- | Luci_Code | 制作 |
475
- | Luci_Code | 构建 |
476
- | Luci_Code | 上传 |
477
- | Luci_Code | 构思 |
473
+ | Luci\_Code | 编写 |
474
+ | Luci\_Code | 打包 |
475
+ | Luci\_Code | 制作 |
476
+ | Luci\_Code | 构建 |
477
+ | Luci\_Code | 上传 |
478
+ | Luci\_Code | 构思 |
478
479
 
479
480
  ---
480
481
 
@@ -483,7 +484,7 @@ prompt 跟 data 参数是一个意思喵🐱
483
484
  ## 输入输出
484
485
 
485
486
  ```python
486
- from Luci_code_tools import color, safe_input
487
+ from Luci_Code_tools import color, safe_input
487
488
 
488
489
  text = safe_input("请输入文本: ", 32, None, 1)
489
490
  color(f"你输入了 {text}", 32, None, 1, 2)
@@ -492,7 +493,7 @@ color(f"你输入了 {text}", 32, None, 1, 2)
492
493
  ## 计算器
493
494
 
494
495
  ```python
495
- from Luci_code_tools import color, safe_float, safe_input
496
+ from Luci_Code_tools import color, safe_float, safe_input
496
497
  from sys import exit
497
498
 
498
499
  color("=== 计算器 ===", 32, None, 1, 2)
@@ -527,7 +528,7 @@ while True:
527
528
  ## 文件读写
528
529
 
529
530
  ```python
530
- from Luci_code_tools import color
531
+ from Luci_Code_tools import color
531
532
  from os import remove
532
533
  from json import load, dump, JSONDecodeError
533
534
 
@@ -574,7 +575,7 @@ else:
574
575
 
575
576
  **Features *6* functions for use**
576
577
 
577
- # Luci_Code_Tools 🔍
578
+ # Luci\_Code_Tools 🔍
578
579
 
579
580
  **Codebase spans over *9,000* characters**
580
581
 
@@ -600,13 +601,13 @@ Windows device info: Windows 10 22H2
600
601
 
601
602
  # Author ヾ(≧▽≦*)o
602
603
 
603
- Author's name: **Luci_Code**
604
+ Author's name: **Luci\_Code**
604
605
 
605
606
  Born in **2014** 🐱
606
607
 
607
- Code written by: Luci_Code
608
+ Code written by: Luci\_Code
608
609
 
609
- Documentation written by: Luci_Code
610
+ Documentation written by: Luci\_Code
610
611
 
611
612
  GitHub link: **https://github.com/Luci-Code-2014/**
612
613
 
@@ -616,7 +617,7 @@ GitHub link: **https://github.com/Luci-Code-2014/**
616
617
 
617
618
  Project folders/files 📂:
618
619
 
619
- Luci_code_tools.py | Main code file
620
+ Luci\_Code_tools.py | Main code file
620
621
 
621
622
  A script spanning over 200 lines of code 🐱
622
623
 
@@ -692,19 +693,19 @@ pip install <package_name>==<version_number>
692
693
  # Note: The example function used in all cases is the 'color' function
693
694
 
694
695
  # Import
695
- import Luci_code_tools
696
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
696
+ import Luci_Code_tools
697
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
697
698
 
698
699
  # Import + as
699
- import Luci_code_tools as lct
700
+ import Luci_Code_tools as lct
700
701
  lct.color("HelloWorld", 32, None, 1, 2)
701
702
 
702
703
  # Reference
703
- from Luci_code_tools import color
704
+ from Luci_Code_tools import color
704
705
  color("HelloWorld", 32, None, 1, 2)
705
706
 
706
707
  # Reference + as
707
- from Luci_code_tools import color as cl
708
+ from Luci_Code_tools import color as cl
708
709
  cl("HelloWorld", 32, None, 1, 2)
709
710
 
710
711
  ```
@@ -985,12 +986,12 @@ These three parameters are identical to the corresponding ones in `color` and `c
985
986
  | DeepSeek | Build, packaging, and upload tutorial |
986
987
  | DeepSeek | Provided improvement suggestions |
987
988
  | DeepSeek | Environment help |
988
- | Luci_Code | Writing |
989
- | Luci_Code | Packaging |
990
- | Luci_Code | Creation |
991
- | Luci_Code | Building |
992
- | Luci_Code | Uploading |
993
- | Luci_Code | Conceptualization |
989
+ | Luci\_Code | Writing |
990
+ | Luci\_Code | Packaging |
991
+ | Luci\_Code | Creation |
992
+ | Luci\_Code | Building |
993
+ | Luci\_Code | Uploading |
994
+ | Luci\_Code | Conceptualization |
994
995
 
995
996
  ---
996
997
 
@@ -999,7 +1000,7 @@ These three parameters are identical to the corresponding ones in `color` and `c
999
1000
  ## Input and Output
1000
1001
 
1001
1002
  ```python
1002
- from Luci_code_tools import color, safe_input
1003
+ from Luci_Code_tools import color, safe_input
1003
1004
 
1004
1005
  text = safe_input("Please enter text: ", 32, None, 1)
1005
1006
  color(f"You entered {text}", 32, None, 1, 2)
@@ -1008,7 +1009,7 @@ color(f"You entered {text}", 32, None, 1, 2)
1008
1009
  ## Calculator
1009
1010
 
1010
1011
  ```python
1011
- from Luci_code_tools import color, safe_float, safe_input
1012
+ from Luci_Code_tools import color, safe_float, safe_input
1012
1013
  from sys import exit
1013
1014
 
1014
1015
  color("=== Calculator ===", 32, None, 1, 2)
@@ -1043,7 +1044,7 @@ while True:
1043
1044
  ## File Read and Write
1044
1045
 
1045
1046
  ```python
1046
- from Luci_code_tools import color
1047
+ from Luci_Code_tools import color
1047
1048
  from os import remove
1048
1049
  from json import load, dump, JSONDecodeError
1049
1050
 
@@ -4,10 +4,13 @@ from typing import Optional, Union
4
4
  import shutil
5
5
  import os
6
6
 
7
- if os.name == "nt": # 系统名称 = "nt" 为 Windows
8
- os.system("") # 激活 win10 / win7 的终端彩色显示功能, 只是为了兼容 cmd , powershell 这类不支持彩色的终端
7
+ if platform == "win32": # 判断平台
8
+ try:
9
+ os.system("") # 激活 win10 / 某些 win7 的终端彩色显示功能
10
+ except Exception:
11
+ pass # 在某些环境下下 os.system 会报错 😭 (比如 Python 的 exe 可执行程序没有命令也就是不能执行命令,即使命令为空以及嵌入式环境压根没有 Shell)
9
12
 
10
- __version__ = "2.2.7" # 明确版本号
13
+ __version__ = "2.2.8" # 明确版本号
11
14
  __all__ = [
12
15
  'color', 'color_rgb', 'clear_screen',
13
16
  'safe_input', 'safe_int', 'safe_float'
@@ -61,7 +64,7 @@ def color_rgb(data: str, r: int, g: int, b: int, mode: int = 0, line: int = 2) -
61
64
  """ 输出 rgb 字符 """
62
65
  print(_ansi_rgb(data, r, g, b, mode), end="\n" * line)
63
66
 
64
- def color(data: str, text_color: Optional[int] = None, bg_color: Optional[int] = None, mode: int = 0, line: int = 2) -> None: # 🤔
67
+ def color(data: str, text_color: Optional[int] = None, bg_color: Optional[int] = None, mode: int = 0, line: int = 2) -> None: # 😭
65
68
  """ 输出彩色字符到控制台
66
69
 
67
70
  参数:
@@ -154,9 +157,6 @@ def _safe_try_except(prompt, input_type=True, convert_func=None, text_color=None
154
157
  except RuntimeError as e:
155
158
  color(f"Serious runtime error\nError message:\n{e}\n严重的运行时错误\n错误信息,\n{e}", 33, None, 1)
156
159
  exit(1)
157
- except SystemExit:
158
- color("System exit\n系统退出", 33, None, 1)
159
- exit(0)
160
160
  except SystemError:
161
161
  color("System error, please check Python interpreter\n系统错误,请检查 Python 解释器", 33, None, 1)
162
162
  exit(0)
@@ -204,8 +204,7 @@ def _safe_try_except(prompt, input_type=True, convert_func=None, text_color=None
204
204
  continue
205
205
  except Exception as e:
206
206
  color(f"Code error\nError message:\n{e}\n代码错误\n错误信息:\n{e}", 33, None, 1)
207
- continue
208
- # 27 个 except
207
+ exit(1)
209
208
 
210
209
  def safe_input(prompt: str, text_color: Optional[int] = None, bg_color: Optional[int] = None, mode: int = 0) -> str:
211
210
  """ 安全输入 """
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Luci-Code-Tools
3
- Version: 2.2.7
3
+ Version: 2.2.8
4
4
  Summary: 一个简单的工具库 / A Eazy Tools Module
5
5
  Home-page: https://github.com/Luci-Code-2014
6
6
  Author: Luci_Code
7
7
  Author-email: 3967742419@qq.com
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
10
11
  Requires-Python: >=3.6
11
12
  Description-Content-Type: text/markdown
12
13
  License-File: LICENSE
@@ -20,7 +21,7 @@ Dynamic: license-file
20
21
  Dynamic: requires-python
21
22
  Dynamic: summary
22
23
 
23
- [![PyPI version](https://badge.fury.io/py/Luci_Code_Tools.svg)](https://pypi.org/project/Luci_Code_Tools/)
24
+ [![PyPI version](https://badge.fury.io/py/Luci\_Code_Tools.svg)](https://pypi.org/project/Luci\_Code_Tools/)
24
25
 
25
26
  [![Python Version](https://img.shields.io/badge/Python-3.6+-blue.svg)]()
26
27
 
@@ -50,7 +51,7 @@ Dynamic: summary
50
51
 
51
52
  **带有 *6* 个函数可使用**
52
53
 
53
- # Luci_Code_Tools 🔍
54
+ # Luci\_Code_Tools 🔍
54
55
 
55
56
  **代码花费 *9000+* 字符数**
56
57
 
@@ -76,13 +77,13 @@ Windows 设备信息: Windows 10 22H2
76
77
 
77
78
  # 作者 ヾ(≧▽≦*)o
78
79
 
79
- 作者名字叫: **Luci_Code**
80
+ 作者名字叫: **Luci\_Code**
80
81
 
81
82
  **2014** 年出生 🐱
82
83
 
83
- 此代码的编写者 : Luci_Code
84
+ 此代码的编写者 : Luci\_Code
84
85
 
85
- 此文档的编写者 : Luci_Code
86
+ 此文档的编写者 : Luci\_Code
86
87
 
87
88
  Github 链接: **https://github.com/Luci-Code-2014/**
88
89
 
@@ -92,7 +93,7 @@ Github 链接: **https://github.com/Luci-Code-2014/**
92
93
 
93
94
  项目文件夹 📂:
94
95
 
95
- Luci_code_tools.py | 代码主文件
96
+ Luci\_Code_tools.py | 代码主文件
96
97
 
97
98
  200+ 行数运行的代码文件 🐱
98
99
 
@@ -171,19 +172,19 @@ pip install <包名>==<版本号>
171
172
  # 注: 所有方式的示例函数为 color 函数
172
173
 
173
174
  # 导入
174
- import Luci_code_tools
175
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
175
+ import Luci_Code_tools
176
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
176
177
 
177
178
  # 导入 + as
178
- import Luci_code_tools as lct
179
+ import Luci_Code_tools as lct
179
180
  lct.color("HelloWorld", 32, None, 1, 2)
180
181
 
181
182
  # 引用
182
- from Luci_code_tools import color
183
+ from Luci_Code_tools import color
183
184
  color("HelloWorld", 32, None, 1, 2)
184
185
 
185
186
  # 引用 + as
186
- from Luci_code_tools import color as cl
187
+ from Luci_Code_tools import color as cl
187
188
  cl("HelloWorld", 32, None, 1, 2)
188
189
 
189
190
  ```
@@ -469,12 +470,12 @@ prompt 跟 data 参数是一个意思喵🐱
469
470
  | DeepSeek | 构建 & 打包 & 上传教程 |
470
471
  | DeepSeek | 提供改进意见 |
471
472
  | DeepSeek | 环境帮助 |
472
- | Luci_Code | 编写 |
473
- | Luci_Code | 打包 |
474
- | Luci_Code | 制作 |
475
- | Luci_Code | 构建 |
476
- | Luci_Code | 上传 |
477
- | Luci_Code | 构思 |
473
+ | Luci\_Code | 编写 |
474
+ | Luci\_Code | 打包 |
475
+ | Luci\_Code | 制作 |
476
+ | Luci\_Code | 构建 |
477
+ | Luci\_Code | 上传 |
478
+ | Luci\_Code | 构思 |
478
479
 
479
480
  ---
480
481
 
@@ -483,7 +484,7 @@ prompt 跟 data 参数是一个意思喵🐱
483
484
  ## 输入输出
484
485
 
485
486
  ```python
486
- from Luci_code_tools import color, safe_input
487
+ from Luci_Code_tools import color, safe_input
487
488
 
488
489
  text = safe_input("请输入文本: ", 32, None, 1)
489
490
  color(f"你输入了 {text}", 32, None, 1, 2)
@@ -492,7 +493,7 @@ color(f"你输入了 {text}", 32, None, 1, 2)
492
493
  ## 计算器
493
494
 
494
495
  ```python
495
- from Luci_code_tools import color, safe_float, safe_input
496
+ from Luci_Code_tools import color, safe_float, safe_input
496
497
  from sys import exit
497
498
 
498
499
  color("=== 计算器 ===", 32, None, 1, 2)
@@ -527,7 +528,7 @@ while True:
527
528
  ## 文件读写
528
529
 
529
530
  ```python
530
- from Luci_code_tools import color
531
+ from Luci_Code_tools import color
531
532
  from os import remove
532
533
  from json import load, dump, JSONDecodeError
533
534
 
@@ -574,7 +575,7 @@ else:
574
575
 
575
576
  **Features *6* functions for use**
576
577
 
577
- # Luci_Code_Tools 🔍
578
+ # Luci\_Code_Tools 🔍
578
579
 
579
580
  **Codebase spans over *9,000* characters**
580
581
 
@@ -600,13 +601,13 @@ Windows device info: Windows 10 22H2
600
601
 
601
602
  # Author ヾ(≧▽≦*)o
602
603
 
603
- Author's name: **Luci_Code**
604
+ Author's name: **Luci\_Code**
604
605
 
605
606
  Born in **2014** 🐱
606
607
 
607
- Code written by: Luci_Code
608
+ Code written by: Luci\_Code
608
609
 
609
- Documentation written by: Luci_Code
610
+ Documentation written by: Luci\_Code
610
611
 
611
612
  GitHub link: **https://github.com/Luci-Code-2014/**
612
613
 
@@ -616,7 +617,7 @@ GitHub link: **https://github.com/Luci-Code-2014/**
616
617
 
617
618
  Project folders/files 📂:
618
619
 
619
- Luci_code_tools.py | Main code file
620
+ Luci\_Code_tools.py | Main code file
620
621
 
621
622
  A script spanning over 200 lines of code 🐱
622
623
 
@@ -692,19 +693,19 @@ pip install <package_name>==<version_number>
692
693
  # Note: The example function used in all cases is the 'color' function
693
694
 
694
695
  # Import
695
- import Luci_code_tools
696
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
696
+ import Luci_Code_tools
697
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
697
698
 
698
699
  # Import + as
699
- import Luci_code_tools as lct
700
+ import Luci_Code_tools as lct
700
701
  lct.color("HelloWorld", 32, None, 1, 2)
701
702
 
702
703
  # Reference
703
- from Luci_code_tools import color
704
+ from Luci_Code_tools import color
704
705
  color("HelloWorld", 32, None, 1, 2)
705
706
 
706
707
  # Reference + as
707
- from Luci_code_tools import color as cl
708
+ from Luci_Code_tools import color as cl
708
709
  cl("HelloWorld", 32, None, 1, 2)
709
710
 
710
711
  ```
@@ -985,12 +986,12 @@ These three parameters are identical to the corresponding ones in `color` and `c
985
986
  | DeepSeek | Build, packaging, and upload tutorial |
986
987
  | DeepSeek | Provided improvement suggestions |
987
988
  | DeepSeek | Environment help |
988
- | Luci_Code | Writing |
989
- | Luci_Code | Packaging |
990
- | Luci_Code | Creation |
991
- | Luci_Code | Building |
992
- | Luci_Code | Uploading |
993
- | Luci_Code | Conceptualization |
989
+ | Luci\_Code | Writing |
990
+ | Luci\_Code | Packaging |
991
+ | Luci\_Code | Creation |
992
+ | Luci\_Code | Building |
993
+ | Luci\_Code | Uploading |
994
+ | Luci\_Code | Conceptualization |
994
995
 
995
996
  ---
996
997
 
@@ -999,7 +1000,7 @@ These three parameters are identical to the corresponding ones in `color` and `c
999
1000
  ## Input and Output
1000
1001
 
1001
1002
  ```python
1002
- from Luci_code_tools import color, safe_input
1003
+ from Luci_Code_tools import color, safe_input
1003
1004
 
1004
1005
  text = safe_input("Please enter text: ", 32, None, 1)
1005
1006
  color(f"You entered {text}", 32, None, 1, 2)
@@ -1008,7 +1009,7 @@ color(f"You entered {text}", 32, None, 1, 2)
1008
1009
  ## Calculator
1009
1010
 
1010
1011
  ```python
1011
- from Luci_code_tools import color, safe_float, safe_input
1012
+ from Luci_Code_tools import color, safe_float, safe_input
1012
1013
  from sys import exit
1013
1014
 
1014
1015
  color("=== Calculator ===", 32, None, 1, 2)
@@ -1043,7 +1044,7 @@ while True:
1043
1044
  ## File Read and Write
1044
1045
 
1045
1046
  ```python
1046
- from Luci_code_tools import color
1047
+ from Luci_Code_tools import color
1047
1048
  from os import remove
1048
1049
  from json import load, dump, JSONDecodeError
1049
1050
 
@@ -1,4 +1,4 @@
1
- [![PyPI version](https://badge.fury.io/py/Luci_Code_Tools.svg)](https://pypi.org/project/Luci_Code_Tools/)
1
+ [![PyPI version](https://badge.fury.io/py/Luci\_Code_Tools.svg)](https://pypi.org/project/Luci\_Code_Tools/)
2
2
 
3
3
  [![Python Version](https://img.shields.io/badge/Python-3.6+-blue.svg)]()
4
4
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  **带有 *6* 个函数可使用**
30
30
 
31
- # Luci_Code_Tools 🔍
31
+ # Luci\_Code_Tools 🔍
32
32
 
33
33
  **代码花费 *9000+* 字符数**
34
34
 
@@ -54,13 +54,13 @@ Windows 设备信息: Windows 10 22H2
54
54
 
55
55
  # 作者 ヾ(≧▽≦*)o
56
56
 
57
- 作者名字叫: **Luci_Code**
57
+ 作者名字叫: **Luci\_Code**
58
58
 
59
59
  **2014** 年出生 🐱
60
60
 
61
- 此代码的编写者 : Luci_Code
61
+ 此代码的编写者 : Luci\_Code
62
62
 
63
- 此文档的编写者 : Luci_Code
63
+ 此文档的编写者 : Luci\_Code
64
64
 
65
65
  Github 链接: **https://github.com/Luci-Code-2014/**
66
66
 
@@ -70,7 +70,7 @@ Github 链接: **https://github.com/Luci-Code-2014/**
70
70
 
71
71
  项目文件夹 📂:
72
72
 
73
- Luci_code_tools.py | 代码主文件
73
+ Luci\_Code_tools.py | 代码主文件
74
74
 
75
75
  200+ 行数运行的代码文件 🐱
76
76
 
@@ -149,19 +149,19 @@ pip install <包名>==<版本号>
149
149
  # 注: 所有方式的示例函数为 color 函数
150
150
 
151
151
  # 导入
152
- import Luci_code_tools
153
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
152
+ import Luci_Code_tools
153
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
154
154
 
155
155
  # 导入 + as
156
- import Luci_code_tools as lct
156
+ import Luci_Code_tools as lct
157
157
  lct.color("HelloWorld", 32, None, 1, 2)
158
158
 
159
159
  # 引用
160
- from Luci_code_tools import color
160
+ from Luci_Code_tools import color
161
161
  color("HelloWorld", 32, None, 1, 2)
162
162
 
163
163
  # 引用 + as
164
- from Luci_code_tools import color as cl
164
+ from Luci_Code_tools import color as cl
165
165
  cl("HelloWorld", 32, None, 1, 2)
166
166
 
167
167
  ```
@@ -447,12 +447,12 @@ prompt 跟 data 参数是一个意思喵🐱
447
447
  | DeepSeek | 构建 & 打包 & 上传教程 |
448
448
  | DeepSeek | 提供改进意见 |
449
449
  | DeepSeek | 环境帮助 |
450
- | Luci_Code | 编写 |
451
- | Luci_Code | 打包 |
452
- | Luci_Code | 制作 |
453
- | Luci_Code | 构建 |
454
- | Luci_Code | 上传 |
455
- | Luci_Code | 构思 |
450
+ | Luci\_Code | 编写 |
451
+ | Luci\_Code | 打包 |
452
+ | Luci\_Code | 制作 |
453
+ | Luci\_Code | 构建 |
454
+ | Luci\_Code | 上传 |
455
+ | Luci\_Code | 构思 |
456
456
 
457
457
  ---
458
458
 
@@ -461,7 +461,7 @@ prompt 跟 data 参数是一个意思喵🐱
461
461
  ## 输入输出
462
462
 
463
463
  ```python
464
- from Luci_code_tools import color, safe_input
464
+ from Luci_Code_tools import color, safe_input
465
465
 
466
466
  text = safe_input("请输入文本: ", 32, None, 1)
467
467
  color(f"你输入了 {text}", 32, None, 1, 2)
@@ -470,7 +470,7 @@ color(f"你输入了 {text}", 32, None, 1, 2)
470
470
  ## 计算器
471
471
 
472
472
  ```python
473
- from Luci_code_tools import color, safe_float, safe_input
473
+ from Luci_Code_tools import color, safe_float, safe_input
474
474
  from sys import exit
475
475
 
476
476
  color("=== 计算器 ===", 32, None, 1, 2)
@@ -505,7 +505,7 @@ while True:
505
505
  ## 文件读写
506
506
 
507
507
  ```python
508
- from Luci_code_tools import color
508
+ from Luci_Code_tools import color
509
509
  from os import remove
510
510
  from json import load, dump, JSONDecodeError
511
511
 
@@ -552,7 +552,7 @@ else:
552
552
 
553
553
  **Features *6* functions for use**
554
554
 
555
- # Luci_Code_Tools 🔍
555
+ # Luci\_Code_Tools 🔍
556
556
 
557
557
  **Codebase spans over *9,000* characters**
558
558
 
@@ -578,13 +578,13 @@ Windows device info: Windows 10 22H2
578
578
 
579
579
  # Author ヾ(≧▽≦*)o
580
580
 
581
- Author's name: **Luci_Code**
581
+ Author's name: **Luci\_Code**
582
582
 
583
583
  Born in **2014** 🐱
584
584
 
585
- Code written by: Luci_Code
585
+ Code written by: Luci\_Code
586
586
 
587
- Documentation written by: Luci_Code
587
+ Documentation written by: Luci\_Code
588
588
 
589
589
  GitHub link: **https://github.com/Luci-Code-2014/**
590
590
 
@@ -594,7 +594,7 @@ GitHub link: **https://github.com/Luci-Code-2014/**
594
594
 
595
595
  Project folders/files 📂:
596
596
 
597
- Luci_code_tools.py | Main code file
597
+ Luci\_Code_tools.py | Main code file
598
598
 
599
599
  A script spanning over 200 lines of code 🐱
600
600
 
@@ -670,19 +670,19 @@ pip install <package_name>==<version_number>
670
670
  # Note: The example function used in all cases is the 'color' function
671
671
 
672
672
  # Import
673
- import Luci_code_tools
674
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
673
+ import Luci_Code_tools
674
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
675
675
 
676
676
  # Import + as
677
- import Luci_code_tools as lct
677
+ import Luci_Code_tools as lct
678
678
  lct.color("HelloWorld", 32, None, 1, 2)
679
679
 
680
680
  # Reference
681
- from Luci_code_tools import color
681
+ from Luci_Code_tools import color
682
682
  color("HelloWorld", 32, None, 1, 2)
683
683
 
684
684
  # Reference + as
685
- from Luci_code_tools import color as cl
685
+ from Luci_Code_tools import color as cl
686
686
  cl("HelloWorld", 32, None, 1, 2)
687
687
 
688
688
  ```
@@ -963,12 +963,12 @@ These three parameters are identical to the corresponding ones in `color` and `c
963
963
  | DeepSeek | Build, packaging, and upload tutorial |
964
964
  | DeepSeek | Provided improvement suggestions |
965
965
  | DeepSeek | Environment help |
966
- | Luci_Code | Writing |
967
- | Luci_Code | Packaging |
968
- | Luci_Code | Creation |
969
- | Luci_Code | Building |
970
- | Luci_Code | Uploading |
971
- | Luci_Code | Conceptualization |
966
+ | Luci\_Code | Writing |
967
+ | Luci\_Code | Packaging |
968
+ | Luci\_Code | Creation |
969
+ | Luci\_Code | Building |
970
+ | Luci\_Code | Uploading |
971
+ | Luci\_Code | Conceptualization |
972
972
 
973
973
  ---
974
974
 
@@ -977,7 +977,7 @@ These three parameters are identical to the corresponding ones in `color` and `c
977
977
  ## Input and Output
978
978
 
979
979
  ```python
980
- from Luci_code_tools import color, safe_input
980
+ from Luci_Code_tools import color, safe_input
981
981
 
982
982
  text = safe_input("Please enter text: ", 32, None, 1)
983
983
  color(f"You entered {text}", 32, None, 1, 2)
@@ -986,7 +986,7 @@ color(f"You entered {text}", 32, None, 1, 2)
986
986
  ## Calculator
987
987
 
988
988
  ```python
989
- from Luci_code_tools import color, safe_float, safe_input
989
+ from Luci_Code_tools import color, safe_float, safe_input
990
990
  from sys import exit
991
991
 
992
992
  color("=== Calculator ===", 32, None, 1, 2)
@@ -1021,7 +1021,7 @@ while True:
1021
1021
  ## File Read and Write
1022
1022
 
1023
1023
  ```python
1024
- from Luci_code_tools import color
1024
+ from Luci_Code_tools import color
1025
1025
  from os import remove
1026
1026
  from json import load, dump, JSONDecodeError
1027
1027
 
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name="Luci-Code-Tools",
8
- version="2.2.7",
8
+ version="2.2.8",
9
9
  author="Luci_Code",
10
10
  author_email="3967742419@qq.com",
11
11
  description="一个简单的工具库 / A Eazy Tools Module",
@@ -16,6 +16,7 @@ setup(
16
16
  classifiers=[
17
17
  "Programming Language :: Python :: 3",
18
18
  "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
19
20
  ],
20
21
  python_requires=">=3.6"
21
- )
22
+ )
File without changes