keyword 函数 ranstr 更新

This commit is contained in:
c3b2a 2021-04-05 11:40:30 +08:00 committed by GitHub
parent c541801cb6
commit 4879a7713d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,7 @@
import random
import string
async def main(context):
try:
length = int(context.text.split()[1])
except:
length = 8
async def main(context, length):
if length > 1000:
length = 100
s = ""