V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ghhardy  ›  全部回复第 16 页 / 共 21 页
回复总数  407
1 ... 8  9  10  11  12  13  14  15  16  17 ... 21  
2018-09-05 12:51:37 +08:00
回复了 lovelybear 创建的主题 程序员 再论编程
没准有人是改内核呢
2018-09-02 14:04:22 +08:00
回复了 keysona 创建的主题 问与答 显示器底部较暗,这是质量问题吗?
不明显,如果不能退换货,就当是阴影效果了呗
2018-09-01 15:10:43 +08:00
回复了 think2011 创建的主题 深圳 三星的 4k 显示器,四周泛绿是什么情况?
楼主买的三星的,换了 LG 的标
2018-08-31 16:24:08 +08:00
回复了 smallseven 创建的主题 程序员 本科毕业去高中当老师怎么样?
我觉得可以去二三四五线的事业性质各类研究所做计算机相关工作,比如数据库、高性能计算、机器学习什么的,如果这些地方 IT 业公司不够好的话。
2018-08-31 16:03:12 +08:00
回复了 gbin 创建的主题 程序员 我带着耳机只是为了不被打扰,其实我根本没放音乐
@shm7 潮汐不错,专注+疗伤哈!纯音乐我也听不得,音乐有情绪,总感觉有声音和我说话似的。我只能听噪音😄
2018-08-31 09:32:35 +08:00
回复了 xiyuemu 创建的主题 Android 滑盖回来了,全键盘会不会回来?
@gtanyin 弗洛伊德+酸葡萄定律了解一下?
2018-08-30 22:09:53 +08:00
回复了 gbin 创建的主题 程序员 我带着耳机只是为了不被打扰,其实我根本没放音乐
@vcinex 对有些人确实有影响,我觉得可以放雷雨声的白噪音。但我集中精力做事时什么也听不得,这也是个弱点
2018-08-30 13:45:07 +08:00
回复了 GJXxiaoBai 创建的主题 Python Python 列表去重怎么用暴力枚举法写出
楼主是否看过 python cookbook ?

If the values in the sequence are hashable, the problem can be easily solved using a set and a generator. For example:

def dedupe(items):
seen = set()
for item in items:
if item not in seen:
yield item seen.add(item)

Here is an example of how to use your function:
>>> a = [1, 5, 2, 1, 9, 1, 5, 10]
>>> list(dedupe(a))
[1, 5, 2, 9, 10]
>>>

This only works if the items in the sequence are hashable. If you are trying to eliminate duplicates in a sequence of unhashable types (such as dicts), you can make a slight change to this recipe, as follows:

def dedupe(items, key=None):
seen = set()
for item in items:
val = item if key is None else key(item)
if val not in seen:
yield item
seen.add(val)

Here, the purpose of the key argument is to specify a function that converts sequence items into a hashable type for the purposes of duplicate detection. Here ’ s how it works:
>>> a = [ {'x':1, 'y':2}, {'x':1, 'y':3}, {'x':1, 'y':2}, {'x':2, 'y':4}]
>>> list(dedupe(a, key=lambda d: (d['x'],d['y'])))
[{'x': 1, 'y': 2}, {'x': 1, 'y': 3}, {'x': 2, 'y': 4}]
>>> list(dedupe(a, key=lambda d: d['x']))
[{'x': 1, 'y': 2}, {'x': 2, 'y': 4}]
>>>
This latter solution also works nicely if you want to eliminate duplicates based on the value of a single field or attribute or a larger data structure.
2018-08-26 15:21:25 +08:00
回复了 WeiwuStore 创建的主题 推广 许多人心目中的最后一把键盘: HHKB 静电容键盘 | 福利派
@kkaka #9 自带的键盘很硬的有没有,习惯了还凑合,从红轴换过去感觉好累
2018-08-26 15:17:02 +08:00
回复了 feral2013 创建的主题 问与答 木工怎么赚钱?本人除了是一名程序员外,还是一名木工
@Zeonjl 有 200w 用来养一支好乐队都够了,唉
2018-08-25 20:12:20 +08:00
回复了 feral2013 创建的主题 问与答 木工怎么赚钱?本人除了是一名程序员外,还是一名木工
@Zeonjl 捉到一枚音响发烧友
2018-08-25 20:11:38 +08:00
回复了 feral2013 创建的主题 问与答 木工怎么赚钱?本人除了是一名程序员外,还是一名木工
@vvaix #4 是皇上穿越过来了
2018-08-22 18:10:07 +08:00
回复了 baskice 创建的主题 问与答 适合开车时听的音乐?
松本孝弘的“ 99 ”,你会回来感谢我的
做一个随机轮播中外双语对照文本的软件,可以是报刊资料或者外文名著等,放在手机 app 或者电脑屏保,随时学习外语
2018-08-19 14:41:04 +08:00
回复了 LTaoist 创建的主题 程序员 为什么 User 应该翻译为 「使用权人」 ?
英文 user 也并不自带权限的含义,权限是在具体环境里加上的,中文“用户”也可以这么用
1 ... 8  9  10  11  12  13  14  15  16  17 ... 21  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2791 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 11:06 · PVG 19:06 · LAX 04:06 · JFK 07:06
Developed with CodeLauncher
♥ Do have faith in what you're doing.