Python生成随机姓名 By admin | 2022-01-16 阅读次数: 生成随机姓名import random xing='赵钱孙李周吴郑王冯陈褚卫蒋沈韩杨朱秦尤许何吕施张孔曹严华金魏陶姜' ming='豫章故郡洪都新府星分翼轸地接衡庐襟三江而带五湖' X=random.choice(xing) M="".join(random.choice(ming) for i in range(2)) print(X+M)