首页   注册   登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  程序员

唯一指定链接:请阅读以下代码

  •  
  •   Azumo · 2017-08-05 15:10:48 +08:00 · 2056 次点击
    这是一个创建于 805 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天突然想起以前的一张 java 合租图片梗,电话号码是代码,然后脑抽就写了个自己的唯一指定链接

    static void Main()
    {
        string[] a = new string[] {"o","-","z","u","m","c","@",".","t","a","k","l"};
        int[] b = new int[] {9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4 };
        Console.Write("Email:");
        for (int i = 0; i <= b.Length - 1; i++)
        {
            int c = b[i];
            Console.Write(a[c]);
        }
        Console.ReadKey();
    }
    
    11 回复  |  直到 2017-08-05 18:33:15 +08:00
        1
    zjsxwc   2017-08-05 15:18:04 +08:00
    随手转成 js。。

    var a = ["o","-","z","u","m","c","@",".","t","a","k","l"];
    var b = [9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4];
    var email = "";
    for (var i = 0; i <= b.length - 1; i++){
    var c = b[i];
    email += a[c];
    }
    console.log(email);
        2
    Azumo   2017-08-05 15:24:32 +08:00
    万用格式 233
        3
    pia   2017-08-05 15:39:57 +08:00
    唯一指定链接是什么?正在学 python。。
    a = '[email protected]'
    b = [9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4]
    email = ''
    for i in range(len(b)):email+=a[b[i]]
    print(email)
        4
    lzhr   2017-08-05 15:50:28 +08:00   ♥ 1
        5
    whileFalse   2017-08-05 15:58:37 +08:00
    请问这是什么语言。
        6
    blanu   2017-08-05 16:02:18 +08:00
    用人脑就能解密了= =,好歹加个 Base64 啥的
        7
    Azumo   2017-08-05 16:39:34 +08:00
    c#
        8
    Azumo   2017-08-05 16:40:00 +08:00
        9
    u5f20u98de   2017-08-05 17:16:46 +08:00
    func main(){
    a:=[]string{"o","-","z","u","m","c","@",".","t","a","k","l"}
    b:=[]int{9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4 }
    for _,num:=range b{
    print(a[num])
    }
    }
        10
    sobigfish   2017-08-05 18:15:41 +08:00
    @lzhr #4 所以你就直接让其把楼主的 email 记住了😂

    在 pc/手机 方便选择复制的话应该还是 js 的 (直接写成 url 的模式?但 chrome 里复制会把 javascript:自动去除)
    minify by javascript-minifier.com(不清楚写法稳妥不)

    javascript:for(var a=["o","-","z","u","m","c","@",".","t","a","k","l"],b=[9,1,2,3,4,0,6,0,3,8,11,0,0,10,7,5,0,4],email="",i=0;i<=b.length-1;i++){var c=b[i];email+=a[c]}document.write(email);
        11
    chenyu0532   2017-08-05 18:33:15 +08:00
    好吧。。仅当娱乐贴。。。
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2195 人在线   最高记录 5043   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.3 · 24ms · UTC 04:08 · PVG 12:08 · LAX 21:08 · JFK 00:08
    ♥ Do have faith in what you're doing.