liyanm169gd

liyanm169gd

V2EX member #624273, joined on 2023-04-15 15:49:15 +08:00
Per liyanm169gd's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
liyanm169gd's recent replies
Jun 2, 2023
Replied to a topic by pathetique Python 弱极了,请教 Python 多线程如何快速开始
猜一下 OP 的意思,如果是每两个字取下来然后统计频率可以这样做,假定你已经把文本读到了变量 tmpstr 里,total = [tmpstr[i]+tmpstr[i+1] for i in range(0,len(a)-1,2)],如果要统计可以直接 set ,然后拿 set 的值当 dict 的 key ,value 是 total.count("这里是 key")
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1585 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 16:34 · PVG 00:34 · LAX 09:34 · JFK 12:34
♥ Do have faith in what you're doing.