V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  dbow  ›  全部回复第 20 页 / 共 25 页
回复总数  490
1 ... 12  13  14  15  16  17  18  19  20  21 ... 25  
2017-08-16 16:29:19 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
我来写个总结, 做个标本, 给各种观点分分类, 画一个终止线
2017-08-16 16:22:05 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
看来必须比人惨还是论坛发帖第一原则 , 只发最后一句就好了, 不会被喷, 能安全不少。
2017-08-16 14:55:27 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@zhibin
@a591826944
@Totato5749
明明是付不起二线房的首付感叹一下, 没想到意外被喷了。
2017-08-15 22:54:14 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
只有愁苦时才知道酒的好, 好酒不嫌多。
<a href="http://imgur.com/myNIAlC"><img src="http://i.imgur.com/myNIAlCh.jpg" title="source: imgur.com" /></a>
2017-08-15 20:45:25 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@V4Exp
@notes
@voocel
@llb123
@FanWall

干杯, 一醉方休, 再来几瓶, 致 30 岁才能付得起首付的同志们。

<a href="http://imgur.com/2niKGH3"><img src="http://i.imgur.com/2niKGH3h.jpg" title="source: imgur.com" /></a>
2017-08-15 19:52:20 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@jimmy2010
@a1044634486
@codingadog
@stzz
下班了, 我先喝点酒, 压抑坏了, what a day!
<a href="http://imgur.com/lsERnIM"><img src="http://i.imgur.com/lsERnIMh.jpg" title="source: imgur.com" /></a>
2017-08-15 19:14:06 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@akira
@masir
干了这瓶 rio, 30 才能付的起首付, 想想心情真是不好。
2017-08-15 19:10:32 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@shuangguanQuail

跟付不起首付的同志们 同悲, 我先干了, 心情实在太压抑, 得整瓶 rio 喝。
2017-08-15 18:46:57 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@liprais
你生的早, 有资格买房, 我羡慕你才对。
2017-08-15 18:25:38 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@anyele
@iiduce
30 了才能付的起首付不惨吗? 兄弟 。
2017-08-15 17:55:00 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@dreamwar 实际情况如此, 有啥可喷的, 我就是没钱付首付。
2017-08-15 17:50:00 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@1O 二线城市呆不下去。
2017-08-15 17:46:43 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@lfk0000 不能解决常见问题, 比如买房, 这叫智商不够。
2017-08-15 17:21:22 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@jason2017
@580a388da131
同行们, 咱们内部交流, 就别上战忽局那一套了, 要真诚。
2017-08-15 17:12:56 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@BoBoy 我带一个小团队
2017-08-15 16:36:46 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@sharkli 没钱上车, 不是不想上。
2017-08-15 16:33:31 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@Hozzz 杭州, 南京
2017-08-15 15:26:15 +08:00
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@Livid 发个贴, 在信息流里看不到是什么情况?
<br>
这个贴的列表显示时间也是错的。
<br>
本贴:dbow · 1 小时 33 分钟前 ·
<br>
列表显示:dbow • 5 小时 37 分钟前
2017-07-12 17:24:30 +08:00
回复了 bakabie 创建的主题 Python 请问下, Python 如何做到结构体内嵌结构体呢?
https://docs.python.org/2/library/ctypes.html#structures-and-unions

You can, however, build much more complicated structures. A structure can itself contain other structures by using a structure as a field type.

Here is a RECT structure which contains two POINTs named upperleft and lowerright:

>>>
>>> class RECT(Structure):
... _fields_ = [("upperleft", POINT),
... ("lowerright", POINT)]
...
>>> rc = RECT(point)
>>> print rc.upperleft.x, rc.upperleft.y
0 5
>>> print rc.lowerright.x, rc.lowerright.y
0 0
>>>
Nested structures can also be initialized in the constructor in several ways:

>>>
>>> r = RECT(POINT(1, 2), POINT(3, 4))
>>> r = RECT((1, 2), (3, 4))
2017-07-03 18:16:52 +08:00
回复了 raycool 创建的主题 Python 咨询个 Python 多进程中出现的奇怪问题
@raycool
@wwqgtxx

这个是忘掉处理 apply_async 的结果造成的误解
apply_async -> result -> result.get() 就能看到异常了, 传递的东西得能 pickle 序列化

Traceback (most recent call last):
File "test.py", line 36, in <module>
print result.get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
cPickle.PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup __builtin__.instancemethod failed

想要序列化 class instance, 可以看看 pickle 的文档
https://docs.python.org/2/library/pickle.html
-> Pickling and unpickling normal class instances
1 ... 12  13  14  15  16  17  18  19  20  21 ... 25  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2565 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 05:31 · PVG 13:31 · LAX 22:31 · JFK 01:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.