mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 05:08:19 +08:00
Opt: utils.py
This commit is contained in:
@@ -66,8 +66,10 @@ def attr(name, text):
|
||||
logger.info('[%s] %s' % (str(name), str(text)))
|
||||
|
||||
|
||||
def attr_align(name, text, align=22):
|
||||
def attr_align(name, text, front='', align=22):
|
||||
name = str(name).rjust(align)
|
||||
if front:
|
||||
name = front + name[len(front):]
|
||||
logger.info('%s: %s' % (name, str(text)))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user