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

老哥们,这段文,好像是 base64 解码的?别人发给我看不懂啊

  wenjor · 2019-11-18 01:42:56 +08:00 · 15126 次点击
这是一个创建于 1830 天前的主题,其中的信息可能已经有所发展或是发生改变。

cXJjb2RlMTExMTExMTAxMDExMDExMDAwMDAwMDExMTExMTExMDAwMDAxMDEwMDEwMDAxMTAwMDEwMTAwMDAwMTEwMTExMDEwMTExMTAwMTAxMDEwMDAxMDExMTAxMTAxMTEwMTAwMTEwMDAwMDExMTAxMDEwMTExMDExMDExMTAxMDAxMDEwMDAxMDEwMTAwMTAxMTEwMTEwMDAwMDEwMTAwMTAxMDAwMTAwMDAxMDAwMDAxMTExMTExMTAxMDEwMTAxMDEwMTAxMDExMTExMTEwMDAwMDAwMDEwMTExMDAxMTExMTAwMDAwMDAwMDAwMTExMDEwMTAwMDAwMDEwMDAwMDExMTAwMTExMTAxMDExMDEwMTEwMTEwMDAxMTAxMDEwMTExMDEwMDEwMDAxMTEwMTEwMDAwMTAwMTAwMDExMDAxMDEwMDExMTAxMTExMTExMDExMTExMTAxMDEwMDAxMDEwMTExMTAxMDExMTAwMDAxMDExMTAxMDAxMTEwMTAxMDAwMDAxMDAxMDEwMTAwMTAxMTAxMDAxMTExMTAwMTEwMDExMTExMDAxMDAwMDEwMTAwMTEwMDEwMDAwMDEwMDExMDAxMDAxMTEwMTAxMTAwMTAxMDEwMDAxMTAwMDAwMTAwMDAwMDAxMDEwMTEwMDEwMDAxMTAxMDAxMTAxMTEwMDAwMDAxMDEwMDAwMTAxMDAwMTAwMDExMDExMDEwMDAxMDEwMTAwMDAxMDExMTAwMDAxMTExMDAxMDAwMDExMDAxMDAwMDEwMDAxMTEwMDAxMDAxMDExMTExMTExMTExMTAwMDAwMDAwMDAxMTEwMDEwMTAwMDExMDAwMTEwMDExMTExMTExMDAwMDAxMDAxMTAxMTEwMTAxMTExMDEwMDAwMDEwMDEwMDExMDExMDEwMTAwMDEwMDAxMTAxMTEwMTAxMTExMDEwMDEwMDAxMTExMTExMTAxMDExMTAxMDEwMTAxMDAwMDExMDAxMDEwMDAwMDEwMTExMDEwMTEwMTAxMTEwMTAwMDExMDEwMTEwMTAwMDAwMTAwMDExMDExMTAxMDEwMTAwMTAwMTAxMTExMTExMDAxMTAxMTEwMDAwMTAxMTAwMTEwMA==

第 1 条附言  ·  2019-11-19 18:29:14 +08:00
呜啊,我都下沉了,怎么还有人收藏啊……你们不要这样啊
我心情好复杂啊,毕竟不是怎么开心的事情
107 条回复    2020-11-20 11:33:58 +08:00
1  2  
lingyi95
    1
lingyi95  
   2019-11-18 01:47:16 +08:00 via iPhone   ❤️ 2
qrcode1111111010110110000000111111110000010100100011000101000001101110101111001010100010111011011101001100000111010101110110111010010100010101001011101100000101001010001000010000011111111010101010101010111111100000000101110011111000000000001110101000000100000111001111010110101101100011010101110100100011101100001001000110010100111011111110111111010100010101111010111000010111010011101010000010010101001011010011111001100111110010000101001100100000100110010011101011001010100011000001000000010101100100011010011011100000010100001010001000110110100010101000010111000011110010000110010000100011100010010111111111111000000000011100101000110001100111111110000010011011101011110100000100100110110101000100011011101011110100100011111111010111010101010000110010100000101110101101011101000110101101000001000110111010101001001011111110011011100001011001100
wenjor
    2
wenjor  
OP
   2019-11-18 01:48:06 +08:00
@lingyi95 不是啦,这样不还是看不懂吗,前面加个 qrcode……难道可以转成二维码???
liuxingbaoyu
    3
liuxingbaoyu  
   2019-11-18 01:54:05 +08:00   ❤️ 5
一共是 841 个字符,开方一下,是 29,也就是 29*29 的二维码,这样应该就 OK 了吧
si
    4
si  
   2019-11-18 01:56:56 +08:00   ❤️ 9
███████ █ ██ ██       ███████
█     █ █  █   ██   █ █     █
█ ███ █ ████  █ █ █   █ ███ █
█ ███ █  ██     ███ █ █ ███ █
█ ███ █  █ █   █ █ █  █ ███ █
█     █ █  █ █   █    █     █
███████ █ █ █ █ █ █ █ ███████
        █ ███  █████         
  ███ █ █      █     ███  ███
█ █ ██ █ ██ ██   ██ █ █ ███ █
  █   ███ ██    █  █   ██  █ 
█  ███ ███████ ██████ █ █   █
 █ ████ █ ███    █ ███ █  ███
 █ █     █  █ █ █  █ ██ █  ██
███  ██  █████  █    █ █  ██ 
 █     █  ██  █  ███ █ ██  █ 
█ █   ██     █       █ █ ██  
█   ██ █  ██ ███      █ █    
█ █   █   ██ ██ █   █ █ █    
█ ███    ████  █    ██  █    
█   ███   █  █ ████████████  
        ███  █ █   ██   ██  █
███████     █  ██ ███ █ ████ 
█     █  █  ██ ██ █ █   █   █
█ ███ █ ████ █  █   ████████ 
█ ███ █ █ █ █    ██  █ █     
█ ███ █ ██ █ ███ █   ██ █ ██ 
█     █   ██ ███ █ █ █  █  █ 
███████  ██ ███    █ ██  ██  

扫描结果是:[27877,22434,20102]
如果排版不对的话,复制到记事本里能扫。
wenjor
    5
wenjor  
OP
   2019-11-18 01:57:38 +08:00
@liuxingbaoyu 哦哦,有道理,那么有什么方便快捷的点阵转换方式吗,求教
liuxingbaoyu
    6
liuxingbaoyu  
   2019-11-18 02:00:08 +08:00
@wenjor 楼上已经有大佬发出来了
wenjor
    7
wenjor  
OP
   2019-11-18 02:04:00 +08:00
@si 感谢,能告诉我是怎么转换过来的吗……还有就是,要调节行距?我放在记事本里还是空隙很大
wenjor
    8
wenjor  
OP
   2019-11-18 02:07:09 +08:00
……等等,这不会就是单纯的字符串扫描替换吧……心累,那么,谁能告诉我下如何改行距
BAT
    9
BAT  
   2019-11-18 02:13:09 +08:00 via iPhone
@wenjor #8 放 Word 里面调间距啊
wenjor
    10
wenjor  
OP
   2019-11-18 02:17:05 +08:00
@BAT 应该是这样,但,段落行间距我调来调去,后面的部分都不对称了
wenjor
    11
wenjor  
OP
   2019-11-18 02:20:35 +08:00
@BAT 解决了,字体问题……谢谢,陷入沉思,然鹅我还是没看懂说的什么[27877,22434,20102]
lovestudykid
    12
lovestudykid  
   2019-11-18 02:26:10 +08:00   ❤️ 34
一切看不懂的密码都当作表白处理
z888888cn
    13
z888888cn  
   2019-11-18 02:30:15 +08:00
@si 大佬,是如何从 qrcode1100 转换成那个字符的?
666VS2333
    14
666VS2333  
   2019-11-18 02:33:12 +08:00 via Android
@lovestudykid 秀儿,是你吗
ljpCN
    15
ljpCN  
   2019-11-18 02:36:32 +08:00 via Android   ❤️ 93
unicode 汉字内码
[27877,22434,20102]
[泥,垢,了]
你够了
laike9m
    16
laike9m  
   2019-11-18 02:42:27 +08:00 via Android
@ljpCN 大佬
lovestudykid
    17
lovestudykid  
   2019-11-18 02:53:00 +08:00   ❤️ 1
@ljpCN 😄,我也想到是汉字编码,偷懒没去看。可惜不是表白,不过也许是这句话传达的意思也不好说。

print('\n'.join(list(map(''.join,zip(*[iter('1111111010110110000000111111110000010100100011000101000001101110101111001010100010111011011101001100000111010101110110111010010100010101001011101100000101001010001000010000011111111010101010101010111111100000000101110011111000000000001110101000000100000111001111010110101101100011010101110100100011101100001001000110010100111011111110111111010100010101111010111000010111010011101010000010010101001011010011111001100111110010000101001100100000100110010011101011001010100011000001000000010101100100011010011011100000010100001010001000110110100010101000010111000011110010000110010000100011100010010111111111111000000000011100101000110001100111111110000010011011101011110100000100100110110101000100011011101011110100100011111111010111010101010000110010100000101110101101011101000110101101000001000110111010101001001011111110011011100001011001100'.replace('1','██').replace('0',' '))]*58)))))
AFuture
    18
AFuture  
   2019-11-18 02:53:58 +08:00 via iPhone
绝了,这帖子。我要收藏.
hanqian
    19
hanqian  
   2019-11-18 03:58:27 +08:00 via Android
哈哈哈 这帖无敌了
wenjor
    20
wenjor  
OP
   2019-11-18 04:58:33 +08:00
@ljpCN 感谢老哥,心理终于畅快了
ningmengmao
    21
ningmengmao  
   2019-11-18 07:20:28 +08:00 via Android
大佬
liyuhang
    22
liyuhang  
   2019-11-18 07:29:23 +08:00
@lovestudykid #12 泥垢了
ddup
    23
ddup  
   2019-11-18 07:34:19 +08:00 via Android
还是 V 友有办法
mwftts
    24
mwftts  
   2019-11-18 08:49:18 +08:00 via Android   ❤️ 1
这是我一年多来收藏的第一个帖子…
quadrapop
    25
quadrapop  
   2019-11-18 08:56:37 +08:00
这个有点意思哦
sunziren
    26
sunziren  
   2019-11-18 09:03:40 +08:00
收藏了
Uyuhz
    27
Uyuhz  
   2019-11-18 09:35:23 +08:00
草(中日双语)
amwyyyy
    28
amwyyyy  
   2019-11-18 09:38:33 +08:00
泥,垢,了
Chenamy2017
    29
Chenamy2017  
   2019-11-18 09:44:49 +08:00
看不懂,好牛逼
misaka19000
    30
misaka19000  
   2019-11-18 09:46:09 +08:00   ❤️ 1
哈哈哈 这是 unicode -> Array -> qrcode -> 01encode -> base64 啊,有点意思
huixia0010
    31
huixia0010  
   2019-11-18 09:51:25 +08:00
@ljpCN 花擦?人才啊,666
HentaiOS
    32
HentaiOS  
   2019-11-18 10:07:07 +08:00
笑死 ww
PriestTomb
    33
PriestTomb  
   2019-11-18 10:12:28 +08:00
@ljpCN 大佬大佬
smilekung
    34
smilekung  
   2019-11-18 10:22:47 +08:00
太牛逼了 特意登上帐号收藏
LeeSeoung
    35
LeeSeoung  
   2019-11-18 10:40:54 +08:00
有点意思
Doraemontree
    36
Doraemontree  
   2019-11-18 10:56:48 +08:00
最后到底啥意思
Bigglesworth
    37
Bigglesworth  
   2019-11-18 10:59:41 +08:00
有点东西
ljspython
    38
ljspython  
   2019-11-18 11:07:43 +08:00
泥垢了
hwcj123
    39
hwcj123  
   2019-11-18 11:32:20 +08:00
牛皮呀
kiracyan
    40
kiracyan  
   2019-11-18 11:37:18 +08:00
笑死
fengjianxinghun
    41
fengjianxinghun  
   2019-11-18 11:44:17 +08:00
牛逼。。。笑死我了
iaoiand
    42
iaoiand  
   2019-11-18 12:17:53 +08:00
绝了
ICU
    43
ICU  
   2019-11-18 12:48:28 +08:00
现在年轻人 聊天都这么高端了吗 🐶
May725
    44
May725  
   2019-11-18 12:58:02 +08:00
泥垢了 😂
flyz
    45
flyz  
   2019-11-18 13:01:13 +08:00 via Android   ❤️ 1
是被女程序员拒绝了吗?
Les1ie
    46
Les1ie  
   2019-11-18 13:02:16 +08:00   ❤️ 4
先 pip install imageio


import base64
import numpy as np
from imageio import imwrite
s = """cXJjb2RlMTExMTExMTAxMDExMDExMDAwMDAwMDExMTExMTExMDAwMDAxMDEwMDEwMDAxMTAwMDEwMTAwMDAwMTEwMTExMDEwMTExMTAwMTAxMDEwMDAxMDExMTAxMTAxMTEwMTAwMTEwMDAwMDExMTAxMDEwMTExMDExMDExMTAxMDAxMDEwMDAxMDEwMTAwMTAxMTEwMTEwMDAwMDEwMTAwMTAxMDAwMTAwMDAxMDAwMDAxMTExMTExMTAxMDEwMTAxMDEwMTAxMDExMTExMTEwMDAwMDAwMDEwMTExMDAxMTExMTAwMDAwMDAwMDAwMTExMDEwMTAwMDAwMDEwMDAwMDExMTAwMTExMTAxMDExMDEwMTEwMTEwMDAxMTAxMDEwMTExMDEwMDEwMDAxMTEwMTEwMDAwMTAwMTAwMDExMDAxMDEwMDExMTAxMTExMTExMDExMTExMTAxMDEwMDAxMDEwMTExMTAxMDExMTAwMDAxMDExMTAxMDAxMTEwMTAxMDAwMDAxMDAxMDEwMTAwMTAxMTAxMDAxMTExMTAwMTEwMDExMTExMDAxMDAwMDEwMTAwMTEwMDEwMDAwMDEwMDExMDAxMDAxMTEwMTAxMTAwMTAxMDEwMDAxMTAwMDAwMTAwMDAwMDAxMDEwMTEwMDEwMDAxMTAxMDAxMTAxMTEwMDAwMDAxMDEwMDAwMTAxMDAwMTAwMDExMDExMDEwMDAxMDEwMTAwMDAxMDExMTAwMDAxMTExMDAxMDAwMDExMDAxMDAwMDEwMDAxMTEwMDAxMDAxMDExMTExMTExMTExMTAwMDAwMDAwMDAxMTEwMDEwMTAwMDExMDAwMTEwMDExMTExMTExMDAwMDAxMDAxMTAxMTEwMTAxMTExMDEwMDAwMDEwMDEwMDExMDExMDEwMTAwMDEwMDAxMTAxMTEwMTAxMTExMDEwMDEwMDAxMTExMTExMTAxMDExMTAxMDEwMTAxMDAwMDExMDAxMDEwMDAwMDEwMTExMDEwMTEwMTAxMTEwMTAwMDExMDEwMTEwMTAwMDAwMTAwMDExMDExMTAxMDEwMTAwMTAwMTAxMTExMTExMDAxMTAxMTEwMDAwMTAxMTAwMTEwMA==

"""
code = base64.b64decode(s).decode()
code = code[6:]
num = [int(i)*255 for i in code]
n = np.array(num)
n = n.reshape(29,29)
imwrite('a.png', n)

打开扫描二维码图片
davie
    47
davie  
   2019-11-18 13:03:24 +08:00 via Android
太好玩了
Les1ie
    48
Les1ie  
   2019-11-18 13:20:32 +08:00
二维码图片最外层的像素没了,可以放在 ppt 里面加个黑色的图片作为背景,然后扫码,也可以 np 数组四周加 255 然后出图片
ww940521
    49
ww940521  
   2019-11-18 14:14:27 +08:00
嗯,舒服了。
KeepingNow
    50
KeepingNow  
   2019-11-18 14:45:12 +08:00
很好玩。
hqweay
    51
hqweay  
   2019-11-18 14:55:24 +08:00
哈哈哈看标题以为水贴,没想到进来是技术贴。感谢前几楼大佬。
xkeyideal
    52
xkeyideal  
   2019-11-18 15:05:53 +08:00   ❤️ 2
楼主表白被拒,自己还破解不了,无情的打脸,这个小姐姐的拒绝方式我喜欢
gimp
    53
gimp  
   2019-11-18 15:14:11 +08:00   ❤️ 2
一男子表白女程序员,收到的回复竟是这样
DrPikaduo
    54
DrPikaduo  
   2019-11-18 15:24:45 +08:00
@lovestudykid 扫不出来,兄弟
kingslayer
    55
kingslayer  
   2019-11-18 15:25:28 +08:00
笑死我了
Rekkles
    56
Rekkles  
   2019-11-18 15:27:24 +08:00
卧槽牛逼🐂🍺
jimmy2010
    57
jimmy2010  
   2019-11-18 15:34:12 +08:00
CTF 普及推广贴😂
scukmh
    58
scukmh  
   2019-11-18 15:35:43 +08:00
ctf 基础题(跑
helloZwq
    59
helloZwq  
   2019-11-18 15:41:09 +08:00
二维码: aHR0cHM6Ly93d3cuamF2YWVyMTAxLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8xMS8yMDE5MTExODA3MzgxNzY1LnBuZw==
ASCII 码转汉字: aHR0cHM6Ly93d3cuamF2YWVyMTAxLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8xMS9pbWFnZS0yMDE5MTExODE1MzkxOTEzNC5wbmc=
JssDream
    60
JssDream  
   2019-11-18 15:52:16 +08:00
好牛掰啊
Les1ie
    61
Les1ie  
   2019-11-18 15:57:08 +08:00
import base64
import numpy as np
from PIL import Image

s = """cXJjb2RlMTExMTExMTAxMDExMDExMDAwMDAwMDExMTExMTExMDAwMDAxMDEwMDEwMDAxMTAwMDEwMTAwMDAwMTEwMTExMDEwMTExMTAwMTAxMDEwMDAxMDExMTAxMTAxMTEwMTAwMTEwMDAwMDExMTAxMDEwMTExMDExMDExMTAxMDAxMDEwMDAxMDEwMTAwMTAxMTEwMTEwMDAwMDEwMTAwMTAxMDAwMTAwMDAxMDAwMDAxMTExMTExMTAxMDEwMTAxMDEwMTAxMDExMTExMTEwMDAwMDAwMDEwMTExMDAxMTExMTAwMDAwMDAwMDAwMTExMDEwMTAwMDAwMDEwMDAwMDExMTAwMTExMTAxMDExMDEwMTEwMTEwMDAxMTAxMDEwMTExMDEwMDEwMDAxMTEwMTEwMDAwMTAwMTAwMDExMDAxMDEwMDExMTAxMTExMTExMDExMTExMTAxMDEwMDAxMDEwMTExMTAxMDExMTAwMDAxMDExMTAxMDAxMTEwMTAxMDAwMDAxMDAxMDEwMTAwMTAxMTAxMDAxMTExMTAwMTEwMDExMTExMDAxMDAwMDEwMTAwMTEwMDEwMDAwMDEwMDExMDAxMDAxMTEwMTAxMTAwMTAxMDEwMDAxMTAwMDAwMTAwMDAwMDAxMDEwMTEwMDEwMDAxMTAxMDAxMTAxMTEwMDAwMDAxMDEwMDAwMTAxMDAwMTAwMDExMDExMDEwMDAxMDEwMTAwMDAxMDExMTAwMDAxMTExMDAxMDAwMDExMDAxMDAwMDEwMDAxMTEwMDAxMDAxMDExMTExMTExMTExMTAwMDAwMDAwMDAxMTEwMDEwMTAwMDExMDAwMTEwMDExMTExMTExMDAwMDAxMDAxMTAxMTEwMTAxMTExMDEwMDAwMDEwMDEwMDExMDExMDEwMTAwMDEwMDAxMTAxMTEwMTAxMTExMDEwMDEwMDAxMTExMTExMTAxMDExMTAxMDEwMTAxMDAwMDExMDAxMDEwMDAwMDEwMTExMDEwMTEwMTAxMTEwMTAwMDExMDEwMTEwMTAwMDAwMTAwMDExMDExMTAxMDEwMTAwMTAwMTAxMTExMTExMDAxMTAxMTEwMDAwMTAxMTAwMTEwMA==
"""
code = base64.b64decode(s).decode()
code = code[6:]
num = [int(i)*255 for i in code]
n = np.array(num)
n = n.reshape(29,29)

n = np.concatenate((np.array([[0]*n.shape[1]]),n))
n = np.concatenate((n,np.array([[0]*n.shape[1]])), axis=0)
n = np.concatenate((np.array([[0]]*n.shape[0]),n), axis=1)
n = np.concatenate((n,np.array([[0]]*n.shape[0])), axis=1)


im = Image.fromarray(np.uint8(n))
im = im.resize((100,100))

im.show()


修改了一下二维码,加了个边框,现在可以直接扫出来了
https://i.loli.net/2019/11/18/gouqwLmSpcRxnXA.png
HuangLibo
    62
HuangLibo  
   2019-11-18 16:04:25 +08:00
感觉很有趣,收藏了(第一个收藏的帖子)
dajiaozi
    63
dajiaozi  
   2019-11-18 16:04:30 +08:00
@Les1ie 张国荣牛逼
openbsd
    64
openbsd  
   2019-11-18 16:09:51 +08:00
技术贴
zdnyp
    65
zdnyp  
   2019-11-18 16:27:25 +08:00
看 cnblogs 就图娱乐,学技术还得上 v2
cpdyj0
    66
cpdyj0  
   2019-11-18 16:54:07 +08:00 via Android
人才啊都是
djs
    67
djs  
   2019-11-18 16:58:37 +08:00
默默的用 js 写了个
lopetver
    68
lopetver  
   2019-11-18 17:19:58 +08:00
@Les1ie 大佬厉害,我还在弄切图的方式然后编码 0,1 还原呢
bxb100
    69
bxb100  
   2019-11-18 17:23:06 +08:00
学习了
youxiachai
    70
youxiachai  
   2019-11-18 17:25:42 +08:00
一个悲伤的故事...
sinu
    71
sinu  
   2019-11-18 17:26:48 +08:00
默默收藏了~现场解密~
liut2016
    72
liut2016  
   2019-11-18 17:32:01 +08:00
真的叼!
auhah
    73
auhah  
   2019-11-18 17:38:49 +08:00
泥垢了哈哈
lbyo
    74
lbyo  
   2019-11-18 17:51:59 +08:00
我就问一下,你俩什么关系
Les1ie
    75
Les1ie  
   2019-11-18 18:00:45 +08:00
@lopetver #68 我是菜鸡
Les1ie
    76
Les1ie  
   2019-11-18 18:11:08 +08:00
@dajiaozi #63 nb
ck65
    77
ck65  
   2019-11-18 18:13:15 +08:00
心疼楼主
u823tg
    78
u823tg  
   2019-11-18 18:22:24 +08:00 via Android
心疼
Coltnagisa
    79
Coltnagisa  
   2019-11-18 18:27:44 +08:00 via iPhone
有点意思
myd
    80
myd  
   2019-11-18 18:39:15 +08:00
需求太少了
daquandiao2
    81
daquandiao2  
   2019-11-18 18:47:07 +08:00
楼主不说出你的故事?
fantastic
    82
fantastic  
   2019-11-18 19:11:08 +08:00
楼主经历了什么
leiuu
    83
leiuu  
   2019-11-18 19:14:52 +08:00
very funny
pengjl
    84
pengjl  
   2019-11-18 19:25:51 +08:00
收藏,请 lz 分享你的故事板凳我已经自备好了
iMusic
    85
iMusic  
   2019-11-18 19:27:03 +08:00
amazing
2oTp
    86
2oTp  
   2019-11-18 19:30:36 +08:00
<!DOCTYPE html>
<html>
<body>
<canvas
id="myCanvas"
width="290"
height="290"
style="border:1px solid #d3d3d3;"
>
Your browser does not support the HTML5 canvas tag.</canvas
>

<script>
var lines = `
11111110101101100000001111111
10000010100100011000101000001
10111010111100101010001011101
10111010011000001110101011101
10111010010100010101001011101
10000010100101000100001000001
11111110101010101010101111111
00000000101110011111000000000
00111010100000010000011100111
10101101011011000110101011101
00100011101100001001000110010
10011101111111011111101010001
01011110101110000101110100111
01010000010010101001011010011
11100110011111001000010100110
01000001001100100111010110010
10100011000001000000010101100
10001101001101110000001010000
10100010001101101000101010000
10111000011110010000110010000
10001110001001011111111111100
00000000111001010001100011001
11111110000010011011101011110
10000010010011011010100010001
10111010111101001000111111110
10111010101010000110010100000
10111010110101110100011010110
10000010001101110101010010010
11111110011011100001011001100`
.split('\n')
.filter(s => s)
var c = document.getElementById('myCanvas')
var ctx = c.getContext('2d')
ctx.beginPath()
lines.forEach((line, line_num) =>
line
.split('')
.forEach(
(bit, column) =>
+bit && ctx.rect(line_num * 10, column * 10, 10, 10)
)
)
ctx.fill()
</script>
</body>
</html>
farverfull
    87
farverfull  
   2019-11-18 19:35:26 +08:00 via Android
楼主知道真相后伤心过度,决定以后都不上 v2 了
FLX2312
    88
FLX2312  
   2019-11-18 19:39:04 +08:00
登录账号,收藏膜拜一下。
Mohanson
    89
Mohanson  
   2019-11-18 19:47:53 +08:00
看前几楼发现可能是 3 个 utf8 中文时, 以为是表白呢... 心疼
Yumwey
    90
Yumwey  
   2019-11-18 19:49:08 +08:00 via Android
🐮🍺
justin2018
    91
justin2018  
   2019-11-18 20:13:30 +08:00
厉害~~~
Les1ie
    92
Les1ie  
   2019-11-18 20:13:31 +08:00
我 zz 了,我的代码里面的 0 替换成 1 1 替换成 0 就是正常的二维码了 .... 并不是缺少边框 orz
wangyzj
    93
wangyzj  
   2019-11-18 23:11:25 +08:00
有意思
zhuzhibin
    94
zhuzhibin  
   2019-11-18 23:50:04 +08:00 via iPhone
笑死
way2create
    95
way2create  
   2019-11-19 09:05:19 +08:00
你太难了
xhf1024
    96
xhf1024  
   2019-11-19 09:14:10 +08:00
膜拜一下
asche910
    97
asche910  
   2019-11-19 09:34:45 +08:00
v 友还是强啊
eastern
    98
eastern  
   2019-11-19 09:54:08 +08:00
虽然可能是个悲伤的故事,不过还是要膜拜一下大佬
shmilypeter
    99
shmilypeter  
   2019-11-19 10:11:40 +08:00
膜拜大佬
tushile928
    100
tushile928  
   2019-11-19 10:51:15 +08:00
神铁刘明
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3009 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 43ms · UTC 14:13 · PVG 22:13 · LAX 06:13 · JFK 09:13
Developed with CodeLauncher
♥ Do have faith in what you're doing.