build0002

This commit is contained in:
Hell13Cat
2021-12-28 23:56:36 +03:00
parent 9f64e1eaca
commit 16c35c5bc5
4 changed files with 37 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
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