你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Changed roundvalue function to round_value.
这个提交包含在:
@@ -74,13 +74,13 @@ def update_progress(progress):
|
||||
|
||||
# Modify this to change the length of the progress bar
|
||||
barLength = 50
|
||||
block = roundvalue(barLength * progress)
|
||||
block = round_value(barLength * progress)
|
||||
text = '\r|{}| {:2.1f}%'.format( '#' * block + '-' * (barLength - block), progress * 100)
|
||||
sys.stdout.write(text)
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def roundvalue(value, decimalplaces=0):
|
||||
def round_value(value, decimalplaces=0):
|
||||
"""Rounding function.
|
||||
|
||||
Args:
|
||||
|
在新工单中引用
屏蔽一个用户