Administrator
2023-05-15 045a5aa6434da6e83c3d850b17e7e58cd7b55ef5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import time
 
 
def money_desc(money):
    if money > 100000000:
        return f"{round(money / 100000000, 2)}亿"
    else:
        return f"{round(money / 10000, 2)}万"
 
 
def time_format(timestamp):
    if timestamp:
        return time.strftime("%H:%M:%S", time.localtime(int(timestamp)))
    return ""