Files
Hell13Cat 16c35c5bc5 build0002
2021-12-28 23:56:36 +03:00

19 lines
396 B
Python

import random
import db
def whatisthis(s):
if isinstance(s, str):
print("ordinary string")
elif isinstance(s, unicode):
print("unicode string")
else:
print("not a string")
print(type(s))
def gen_id():
symbols = list("qwertyuiopasdfghjklzxcvbnm1234567890")
text = ""
for ii in range(30):
text += random.choice(symbols)
return text