中国大陆手机号为11位,前3位为各个运营商固定号段,后8位随机
import random
def rand_phone_num():
headList = ["130", "131", "132", "133", "134", "135", "136", "137", "138", "139",
"147", "150", "151", "152", "153", "155", "156", "157", "158", "159",
"186", "187", "188", "189"]
return (random.choice(headList) + "".join(random.choice("0123456789") for i in range(8)))