Skip to content

Commit

Permalink
✨ feat(提交新版本): 添加了列表输入
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce1408 committed Mar 1, 2024
1 parent 09b71b7 commit f407093
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Colorful_Print/printk/printk.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def print_colored_box(text, text_background=False, text_color='white', box_color
padded_step = step.ljust(max_length - 4)
# 为文本和边框添加颜色和样式
colored_step = colored("| ", box_color, attrs=attrs) + colored(padded_step, text_color, attrs=attrs) + colored(" |", box_color, attrs=attrs)
print(colored("| ", box_color, attrs=attrs) + colored(" " * (max_length - 4), text_color, attrs=attrs) + colored(" |", box_color, attrs=attrs))
print(colored_step)
print(colored("| ", box_color, attrs=attrs) + colored(" " * (max_length - 4), text_color, attrs=attrs) + colored(" |", box_color, attrs=attrs))

Expand Down
2 changes: 1 addition & 1 deletion Colorful_Print/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# package information

name="printcolorful",
version="0.2.4",
version="0.2.5",
packages=find_packages(),
description="A colorful print tool for python",
author="bruce_cui",
Expand Down
1 change: 1 addition & 0 deletions Colorful_Print/test/debug_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def print_colored_box(text, text_background=False, text_color='white', box_color
padded_step = step.ljust(max_length - 4)
# 为文本和边框添加颜色和样式
colored_step = colored("| ", box_color, attrs=attrs) + colored(padded_step, text_color, attrs=attrs) + colored(" |", box_color, attrs=attrs)
print(colored("| ", box_color, attrs=attrs) + colored(" " * (max_length - 4), text_color, attrs=attrs) + colored(" |", box_color, attrs=attrs))
print(colored_step)
print(colored("| ", box_color, attrs=attrs) + colored(" " * (max_length - 4), text_color, attrs=attrs) + colored(" |", box_color, attrs=attrs))

Expand Down

0 comments on commit f407093

Please sign in to comment.