标签: python-2.7
import random import string password1=''.join(random.choice(string.ascii_letters + string.digits `+"@!#%^&*()") for _ in range(7)) password=random.choice(string.ascii_letters) + password1 print password