1、用到的模块:random。
2、引入函数 import random。文章源自玩技e族-https://www.playezu.com/22562.html
3、引入join函数格式化随机生成的数据。文章源自玩技e族-https://www.playezu.com/22562.html
- for email in range(5):
- user_email = ''.join(random.sample('123456789abcdefg',5)) +"@163.com"
- print(user_email)
4、用户名同理生成即可。文章源自玩技e族-https://www.playezu.com/22562.html 文章源自玩技e族-https://www.playezu.com/22562.html