Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Sep 11, 2024
1 parent 1fe47cc commit 05b0bb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ def print_warn(data,end="\n"):

@staticmethod
def print_text(values="",end="\n",flush= False):
print(values,end=end,flush=flush)
print(values,end=str(end),flush=flush) # force to string
Tracking.put_log(values,end=end)

@staticmethod
Expand Down Expand Up @@ -1070,7 +1070,7 @@ def __choose(data,tips,array):
while True:
if choose_item:
choose = str(choose_item['choose'])
PrintUtils.print_text(tr.tr("为您从配置文件找到默认选项:"),choose_item)
PrintUtils.print_text(tr.tr("为您从配置文件找到默认选项:")+str(choose_item))
else:
choose = input(tr.tr("请输入[]内的数字以选择:"))
choose_item = None
Expand Down Expand Up @@ -1121,7 +1121,7 @@ def __choose(data,tips,array,categories):
while True:
if choose_item:
choose_id = str(choose_item['choose'])
print(tr.tr("为您从配置文件找到默认选项:"),choose_item)
print(tr.tr("为您从配置文件找到默认选项:")+str(choose_item))
else:
choose_id = input(tr.tr("请输入[]内的数字以选择:"))
choose_item = None
Expand Down

0 comments on commit 05b0bb0

Please sign in to comment.