Skip to content

Commit

Permalink
馃悶 fix(printk): 淇敼浜唒rintk鍙傛暟bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce1408 committed Mar 26, 2024
1 parent 172bc43 commit 3bd97d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Colorful_Print/printk/printk.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def print_colored_box(text, bbox_width=40, text_color='white', box_color='green'

print(content_width)
# 纭畾鎬诲搴︼紝鑰冭檻鍒拌竟妗嗙殑瀹藉害(+2)
total_width = max(pad_len, content_width + 4)
total_width = max(bbox_width, content_width + 4)

# 鐢熸垚椤堕儴鍜屽簳閮ㄧ殑杈规
top_bottom_border = '+' + '-' * (total_width - 2) + '+'
Expand Down

0 comments on commit 3bd97d2

Please sign in to comment.