z692435632 发表于 2022-9-3 23:33:25

寻找字节集这个命令是不是不能用?

怎么写都返回-1   


左边位置 = 寻找字节集 (字节集内容, 文本到字节集 ("159"), 1)

返回-1      搞了几个小时都没用,有没有大佬知道

Xelloss0618 发表于 2022-9-3 23:59:51

命令是没有问题的,这要看一下你的字节集内容是什么了(文本编码是否一致)。
如果你要找的内容就在开头,你这起始查找位置填 1 是肯定找不到的。

z692435632 发表于 2022-9-4 00:04:58

Xelloss0618 发表于 2022-9-3 23:59
命令是没有问题的,这要看一下你的字节集内容是什么了(文本编码是否一致)。
如果你要找的内容就在开头, ...

小哥哥,写一个寻找字节集的例子,让我看看

server 发表于 2022-9-4 00:33:11

你写的没错

创世魂 发表于 2022-9-4 08:11:10

调试输出 (寻找字节集 (文本到字节集 ("123"), 文本到字节集 ("1"),0))
位置是从0开始的。要注意字节集编码。

文本到字节集
文本到UTF8
文本到多字节




z692435632 发表于 2022-9-4 11:56:41

创世魂 发表于 2022-9-4 08:11
调试输出 (寻找字节集 (文本到字节集 ("123"), 文本到字节集 ("1"),0))
位置是从0开始的。要注意字节集编码 ...





我这样写的,返回都是-1      文件给你上传了,我读取返回字节集是正常的,全部内容都出来了

wtuauwfn 发表于 2022-9-4 12:59:21

z692435632 发表于 2022-9-4 11:56
我这样写的,返回都是-1      文件给你上传了,我读取返回字节集是正常的,全部内容都出来了
...

你读入的文件编码问题啊

z692435632 发表于 2022-9-4 13:02:30

wtuauwfn 发表于 2022-9-4 12:59
你读入的文件编码问题啊

大佬写个例子来,谢谢啦

z692435632 发表于 2022-9-4 13:04:42

wtuauwfn 发表于 2022-9-4 12:59
你读入的文件编码问题啊

座等例子

z692435632 发表于 2022-9-4 13:08:36

<字节集> 总共 4096 个字节,输出了 1024 个,还有 3072 个未被输出.
: 59 02 00 00 65 26 6B 65 79 5F 73 61 76 65 64 5F | Y...e&key_saved_
: 73 65 6E 64 5F 79 7A 6D 5F 73 75 63 63 65 73 73 | send_yzm_success
: 66 75 6C 6C 79 5F 6D 6F 62 69 6C 65 3D 3C 5B 7B | fully_mobile=<[{
: 22 61 22 3A 31 36 36 32 31 33 32 33 36 32 30 34 | "a":166213236204
: 38 2C 22 62 22 3A 22 31 35 39 37 39 34 37 31 30 | 8,"b":"159794710
: 33 34 22 2C 22 63 22 3A 22 22 2C 22 64 22 3A 22 | 34","c":"","d":"
: 22 2C 22 65 22 3A 22 22 7D 5D 2A 6B 65 79 5F 73 | ","e":""}]*key_s
: 61 76 65 64 5F 70 72 65 76 69 6F 75 73 5F 6C 6F | aved_previous_lo
: 67 69 6E 5F 61 63 63 6F 75 6E 74 5F 69 6E 66 6F | gin_account_info
: 5F 35 34 33 30 C6 03 C4 03 7B 22 39 37 31 35 31 | _5430....{"97151
: 30 37 38 31 32 34 30 34 22 3A 7B 22 61 76 61 74 | 07812404":{"avat
: 61 72 22 3A 22 68 74 74 70 73 3A 2F 2F 61 76 61 | ar":"https://ava
: 74 61 72 32 2E 70 64 64 70 69 63 2E 63 6F 6D 2F | tar2.pddpic.com/
: 61 2F 51 30 5A 4E 64 54 51 77 63 43 74 50 4E 48 | a/Q0ZNdTQwcCtPNH
: 45 79 57 46 55 35 57 6A 5A 33 4D 58 6F 77 54 44 | EyWFU5WjZ3MXowTD
: 6C 56 5A 6C 4E 42 57 58 68 73 4F 45 6C 61 55 54 | lVZlNBWXhsOElaUT
: 30 39 64 6A 41 30 2D 31 36 35 39 32 34 32 37 33 | 09djA0-165924273
: 38 3F 69 6D 61 67 65 4D 6F 67 72 32 2F 74 68 75 | 8?imageMogr2/thu
: 6D 62 6E 61 69 6C 2F 32 30 30 78 22 2C 22 6E 69 | mbnail/200x","ni
: 63 6B 5F 6E 61 6D 65 22 3A 22 E6 98 9F E7 82 B9 | ck_name":"......
: E6 95 99 E8 82 B2 22 2C 22 6C 6F 67 69 6E 5F 61 | ......","login_a
: 70 70 5F 69 64 22 3A 35 2C 22 6C 61 73 74 5F 61 | pp_id":5,"last_a
: 63 74 69 76 65 5F 74 69 6D 65 22 3A 31 36 36 32 | ctive_time":1662
: 31 33 32 34 34 39 30 30 38 2C 22 6D 6F 62 69 6C | 132449008,"mobil
: 65 5F 69 64 22 3A 22 33 34 34 32 36 35 30 35 34 | e_id":"344265054
: 38 37 35 34 38 30 30 36 34 30 30 33 34 22 2C 22 | 8754800640034","
: 6D 6F 62 69 6C 65 5F 64 65 73 22 3A 22 31 35 39 | mobile_des":"159
: 2A 2A 2A 2A 31 30 33 34 22 2C 22 63 68 61 6E 67 | ****1034","chang
: 65 5F 6C 6F 67 69 6E 5F 74 79 70 65 22 3A 32 2C | e_login_type":2,
: 22 75 69 64 22 3A 22 39 37 31 35 31 30 37 38 31 | "uid":"971510781
: 32 34 30 34 22 2C 22 75 69 6E 22 3A 22 43 55 54 | 2404","uin":"CUT
: 33 4B 56 50 52 43 4E 4D 57 51 55 4F 56 57 4E 32 | 3KVPRCNMWQUOVWN2
: 4A 46 57 51 37 42 4D 5F 47 45 58 44 41 22 2C 22 | JFWQ7BM_GEXDA","
: 61 63 63 65 73 73 5F 74 6F 6B 65 6E 22 3A 22 50 | access_token":"P
: 36 36 57 44 55 4D 4D 4C 4E 56 33 45 51 59 53 58 | 66WDUMMLNV3EQYSX
: 51 54 5A 42 32 36 57 5A 46 32 53 4E 59 4E 54 46 | QTZB26WZF2SNYNTF
: 4D 33 57 53 50 53 33 42 52 56 36 35 5A 4B 46 5A | M3WSPS3BRV65ZKFZ
: 47 4C 41 31 31 30 33 34 33 34 22 7D 7D 00 00 00 | GLA1103434"}}...
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................

文件路径 = 取运行目录 () + "文件接收目录\\login"
要发送的文件 = 读入文件 (文件路径)
调试输出 (要发送的文件)
调试输出 (寻找字节集 (要发送的文件, 文本到字节集 ("15979471034"), 0))返回-1
读取字节集是没问题,就是寻找字节集阳痿,怎么办
页: [1] 2
查看完整版本: 寻找字节集这个命令是不是不能用?