yangsi's recent timeline updates
yangsi

yangsi

V2EX member #218375, joined on 2017-03-02 11:56:42 +08:00
yangsi's recent replies
Jan 20, 2019
Replied to a topic by anry iPad 突然想买 iPad 可是到底有什么用呢
看 pdf 吧 ,不然一般的安卓平板能卡死
Jan 18, 2019
Replied to a topic by u2gign Python 求助 Python 问题
@yangsi 这个编辑器没有格式啊
Jan 18, 2019
Replied to a topic by u2gign Python 求助 Python 问题
@u2gign

for fruit in list1:
for t in list2:
if t[0] == fruit:
list3.append(t)
break
else:
print(fruit,'not found')
Jan 18, 2019
Replied to a topic by whoami9894 Python 为什么要在__slots__中添加__dict__属性?
定义在 slots 里面的属性还是不保存在 dict 里面。
Jan 18, 2019
Replied to a topic by whoami9894 Python 为什么要在__slots__中添加__dict__属性?
添加__dict__之后使对象有了动态添加属性的能力,但是定义在__solt
Jan 18, 2019
Replied to a topic by whoami9894 Python 为什么要在__slots__中添加__dict__属性?
为了支持动态创建属性。
Jan 18, 2019
Replied to a topic by u2gign Python 求助 Python 问题
[t for t in list2 if t[0] in list1] 这样? list1 如果太长先转成集合
(字段,True )
默认正序,加上 True 是倒序
column_default_sort ( is_vip,True ) 是不是这个问题。is_vip 里面有的是 false 就报错。


改一个排序字段试下。
Jan 18, 2019
Replied to a topic by simoncos Python Python 功能点实现:数据热更新
@simoncos 多进程或者分布式应用不是自然就搞一个集中式的配置服务吗?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3099 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 08:09 · PVG 16:09 · LAX 01:09 · JFK 04:09
♥ Do have faith in what you're doing.