oneTimeElastic's recent timeline updates
oneTimeElastic

oneTimeElastic

V2EX member #304549, joined on 2018-03-29 20:53:56 +08:00
oneTimeElastic's recent replies
是,机器学习 /统计学习就是数学建模,深度学习这块现在还不好说
Sep 9, 2020
Replied to a topic by oneTimeElastic 算法 找出列表中的元素对升序排列
@avastms 就是对所有的元素的配对,以各元素对的距离排序。但各元素在返回值里只能出现一次。
@whusnoopy 嗯就是这个要求 真是惭愧,语文表达都成问题
这个办法很好,我一开始用 dictionary 记录 index 和次数,但没用 enumerate 而使用 while i < len(ls) 然后再遇到重复 i += 1 这样的,结果遇到了超了 list 的 index 哎
是要一组连续数的第一个数的 index
能讲讲什么叫对应位置相减吗
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1395 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 85ms · UTC 23:58 · PVG 07:58 · LAX 16:58 · JFK 19:58
♥ Do have faith in what you're doing.