1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Opt: Move point2str to module/base/utils.py

This commit is contained in:
LmeSzinc
2020-07-05 22:59:46 +08:00
parent 1f110c43cf
commit 4ed424fc20
2 changed files with 10 additions and 10 deletions

View File

@@ -2,6 +2,10 @@ import numpy as np
from PIL import ImageStat
def point2str(x, y, length=4):
return '(%s,%s)' % (str(int(x)).rjust(length), str(int(y)).rjust(length))
def random_normal_distribution_int(a, b, n=5):
"""Generate a normal distribution int within the interval. Use the average value of several random numbers to
simulate normal distribution.