乘风原创程序

  • 查询支付宝电话号中隐藏的六位数
  • 2021/2/22 17:53:22
  • 支付宝查询号码

    1.支付宝好友电话号只能显示前三位跟最后两位

    怎么查到中间的六位数字是什么呢?
    10的六次方是百万级别,这么大的值枚举是不是太大了
    

    2.借助工具生成电话号然后生成通讯录导入到手机。

    如果你的通讯录有这个好友那么,支付宝会自动的显示全所有的电话号
    

    3.电话号的组成

    前三位代表运营商,移动,联通,电信
    中间四位代表区域,北京,南京,天津(百度查号吧可查)
    

    4.java生成电话号代码

    public class test {
    
        public static String  pre = "147";
        public static String taiZhouMid[] = {"0576","5708","5720","5760","5762","5764","5766","5768",
        "5780","5782","5784","0586","5709","5721","5761","5763","5765","5767","5769","5781","5783"};
        public static String taiYuanMid[] = {"0066","0341","0351","1780","1781","3510","3511","3512",
        "3513","3514","3515","3530","3531","3532","3533","3534","3535","3536","3537","3538","3539","6524",
                "6638","6639","9715","9716","9717","9718","9719","9720","9721","9722"};
        public static String shuoZhouMid[] = {"1797","3500","3571","3572","3573","3574","3575","3576",
        "9710","9711"};
        public static String last = "43";
        public static void main(String[] args){
        creat(shuoZhouMid);
        }
        public static void creat(String mid[]){
            try {
                BufferedWriter out = new BufferedWriter(new FileWriter("D://phone.txt"));
    
                java.text.DecimalFormat df=new java.text.DecimalFormat();
                df.applyPattern("00");
                StringBuilder phoneNumber = new StringBuilder();
                System.out.println(mid.length);
                for(int i = 0 ;i<mid.length;i++){
                    for(int j = 0;j<100;j++){
                        phoneNumber = phoneNumber .append(pre).append(mid[i]).append(df.format(j)).append(last) ;
                        out.write(phoneNumber + "\r\n");
                        phoneNumber.setLength(0);
                    }
                }
                out.close();
                System.out.println("文件创建成功!");
            } catch (IOException e) {
            }
        }
    }
    
    

    5.python生成电话号代码

    #!/usr/bin/python
    # -*- coding: UTF-8 -*-
    
    
    def create():
        f = open('test.txt', 'w')
        for i in range(100):
            if i < 10:
                mid = '0' + str(i)
            else:
                mid = str(i)
            line = '1580429' + mid + '51'
            f.write(line)
            f.write("\t\n")
        f.close()
    
    
    def display():
        f = open('test.txt', 'r')
        print(f.read())
    
    
    if __name__ == "__main__":
        # i = 100
        # str = '0' + str(i)
        # print(str)
        create()
        display()
    
    

    6.perl生成电话号代码

    use warnings;
    use strict;
    
    create();
    display();
    sub create {
        open FILE, ">file.txt" or die $!; #write
        my $str;
        my $mid;
        for (my $i = 0; $i < 100;$i = $i +1){
            if($i<10){
                $mid = "0".$i;
            }else{
                $mid = $i;
            }
            $str = "1580429" . $mid . "51";
            print FILE $str;
            print FILE "\t\n";
        }
        close FILE;
    }
    sub display {
        open(DATA,"<file.txt") or die "无法打开数据";
    
        while (<DATA>){
            print;
        }
        # my @lines = <DATA>;
        # print @lines;
        close(DATA);
    }
    

    7.然后用小程序把txt文档转换为vcf格式的电话簿导入手机即可(我上传的资源中可下载)

    本文地址:https://blog.csdn.net/hdf12947991059/article/details/113941709