python 随机选择字符串中的一个字符

import random  
print(random.choice('abcdefghijklm')) 

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/9966095.html