add:fronted

This commit is contained in:
lan committed 2023-08-14 01:56:46 +08:00
1 parent 490b3605a4
commit accd384e4b
13 files changed
+258 -8

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# @Time : 2023/8/13 19:54
# @Author : Lan
# @File : utils.py
# @Software: PyCharm
import random
import string
async def get_random_num():
"""
获取随机数
:return:
"""
return random.randint(10000, 99999)
r_s = string.ascii_uppercase + string.digits
async def get_random_string():
"""
获取随机字符串
:return:
"""
return ''.join(random.choice(r_s) for _ in range(5))