V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  pythongo  ›  全部回复第 10 页 / 共 12 页
回复总数  227
1 ... 2  3  4  5  6  7  8  9  10  11 ... 12  
2017-08-17 09:24:27 +08:00
回复了 tilv37 创建的主题 日本 肉翻东京,求意见
好想翻墙
2017-08-03 12:13:39 +08:00
回复了 shihty5 创建的主题 职场话题 接到加拿大的 offer,是否值得一去?
出去最多后悔一时,不出去可能后悔一辈子。
2017-07-28 11:48:31 +08:00
回复了 Hucai 创建的主题 问与答 试用期该怎么辞职,工资可以要到吗
什么狗逼领导, 这要是当个人民公仆还不得压死人。
2017-07-26 19:32:02 +08:00
回复了 bccber 创建的主题 Python 用类作字典的 Key 能搞不?
A dictionary ’ s keys are almost arbitrary values. Values that are not hashable, that is, values containing lists, dictionaries or other mutable types (that are compared by value rather than by object identity) may not be used as keys.

hashable
An object is hashable if it has a hash value which never changes during its lifetime (it needs a __hash__() method), and can be compared to other objects (it needs an __eq__() or __cmp__() method). Hashable objects which compare equal must have the same hash value.

Hashability makes an object usable as a dictionary key and a set member, because these data structures use the hash value internally.

All of Python ’ s immutable built-in objects are hashable, while no mutable containers (such as lists or dictionaries) are. Objects which are instances of user-defined classes are hashable by default; they all compare unequal (except with themselves), and their hash value is derived from their id().
2017-07-26 12:17:45 +08:00
回复了 bccber 创建的主题 Python 用类作字典的 Key 能搞不?
字典的 key 是不可变,能 hash 的, 你去看字典 key 的限制,只要符合规范当然可以
2017-07-11 15:46:35 +08:00
回复了 Allenqjy 创建的主题 问与答 搭建了一个宠物论坛,然后自己架了 cdn,但仍然很慢
@Allenqjy 露毛社 不是更好
2017-07-11 15:17:19 +08:00
回复了 Allenqjy 创建的主题 问与答 搭建了一个宠物论坛,然后自己架了 cdn,但仍然很慢
出域名了 lumaoshe.com 撸猫社
嘿嘿
2017-07-11 00:06:39 +08:00
回复了 suueyoung 创建的主题 职场话题 在厂里头和女友手拉手被人投诉到 hr 怎么办..
要是我直接怼回去, 干活不是为了找个好女友,幸福生活啊。
为啥不让拉手,妈卖批的。
2017-07-06 15:48:57 +08:00
回复了 pythonee 创建的主题 Python 用 Python 出过活,但是不知道怎么继续提高,该怎么办
我的建议是研究源码,这是我的方法
2017-07-06 11:13:56 +08:00
回复了 ray1888 创建的主题 Linux Linux 笔记本求推荐(预算 5000 左右)
新出的 X270 不是也挺好吗, 得买 1080p 的屏幕。
就是大黑边框万年不变。
2017-06-30 12:14:58 +08:00
回复了 holy_sin 创建的主题 问与答 出几乎全新二手计算机书籍,价格合理
预定 TCP/IP 详解
不是大牛能进嘛
1 ... 2  3  4  5  6  7  8  9  10  11 ... 12  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4172 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 04:10 · PVG 12:10 · LAX 21:10 · JFK 00:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.