V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  dbow  ›  全部回复第 21 页 / 共 26 页
回复总数  507
1 ... 13  14  15  16  17  18  19  20  21  22 ... 26  
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
只有愁苦时才知道酒的好, 好酒不嫌多。
<a href="http://imgur.com/myNIAlC"><img src="http://i.imgur.com/myNIAlCh.jpg" title="source: imgur.com" /></a>
2017 年 8 月 15 日
回复了 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 年 8 月 15 日
回复了 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 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@akira
@masir
干了这瓶 rio, 30 才能付的起首付, 想想心情真是不好。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@shuangguanQuail

跟付不起首付的同志们 同悲, 我先干了, 心情实在太压抑, 得整瓶 rio 喝。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@liprais
你生的早, 有资格买房, 我羡慕你才对。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@anyele
@iiduce
30 了才能付的起首付不惨吗? 兄弟 。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@dreamwar 实际情况如此, 有啥可喷的, 我就是没钱付首付。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@1O 二线城市呆不下去。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@lfk0000 不能解决常见问题, 比如买房, 这叫智商不够。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@jason2017
@580a388da131
同行们, 咱们内部交流, 就别上战忽局那一套了, 要真诚。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@BoBoy 我带一个小团队
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@sharkli 没钱上车, 不是不想上。
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@Hozzz 杭州, 南京
2017 年 8 月 15 日
回复了 dbow 创建的主题 随想 我现在有点不敢去测智商。
@Livid 发个贴, 在信息流里看不到是什么情况?
<br>
这个贴的列表显示时间也是错的。
<br>
本贴:dbow · 1 小时 33 分钟前 ·
<br>
列表显示:dbow • 5 小时 37 分钟前
2017 年 7 月 12 日
回复了 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 年 7 月 3 日
回复了 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
2017 年 7 月 1 日
回复了 yucongo 创建的主题 Python Windows 下 Python 3 出 segfault 时如何找错?
gdb --args ./app ..... 跑一遍, 出了 segment fault, 用 bt 命令, 输出 stack trace
@wwqgtxx ctypes 调用 c 函数是自动释放 GIL 的, 除非是调用 python 自己的 C API.

821 #ifdef WITH_THREAD
822 if ((flags & FUNCFLAG_PYTHONAPI) == 0)
823 Py_UNBLOCK_THREADS
824 #endif
825 if (flags & FUNCFLAG_USE_ERRNO) {
826 int temp = space[0];
827 space[0] = errno;
828 errno = temp;
829 }
830 #ifdef MS_WIN32
831 if (flags & FUNCFLAG_USE_LASTERROR) {
832 int temp = space[1];
833 space[1] = GetLastError();
834 SetLastError(temp);
835 }
2017 年 7 月 1 日
回复了 yucongo 创建的主题 Python Windows 下 Python 3 出 segfault 时如何找错?
完整的错误信息贴出来看看。
1 ... 13  14  15  16  17  18  19  20  21  22 ... 26  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2594 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 15:56 · PVG 23:56 · LAX 08:56 · JFK 11:56
♥ Do have faith in what you're doing.