2011-02-10 66 views

回答

11
import random 
random.choice('string') 
# If you want more than 1 char, say n 
''.join(random.sample('string',n))