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

2017-08-05 15:10:48 +08:00
 Azumo

今天突然想起以前的一张 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();
}
2783 次点击
所在节点    程序员
11 条回复
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);
Azumo
2017-08-05 15:24:32 +08:00
万用格式 233
pia
2017-08-05 15:39:57 +08:00
唯一指定链接是什么?正在学 python。。
a = 'o-zumc@.takl'
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)
lzhr
2017-08-05 15:50:28 +08:00
whileFalse
2017-08-05 15:58:37 +08:00
请问这是什么语言。
blanu
2017-08-05 16:02:18 +08:00
用人脑就能解密了= =,好歹加个 Base64 啥的
Azumo
2017-08-05 16:39:34 +08:00
c#
Azumo
2017-08-05 16:40:00 +08:00
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])
}
}
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);
chenyu0532
2017-08-05 18:33:15 +08:00
好吧。。仅当娱乐贴。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/380630

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX