Is there any way to check if object is an instance of a class? Not an instance of a concrete class, but an instance of any class.python中not,I can check that an object is not a class, not a module, not a traceback etc., but I am interested in a simple so
import random
checkcode=''
for i in range(0,5):#5位驗證碼current=random.randrange(0,5)#字母if current==i:tmp=chr(random.randint(65,115))#數組else:tmp=random.randint(0,9)checkcode+=str(tmp)
print(checkcode) ? 轉載于