wlxz's recent timeline updates
wlxz

wlxz

V2EX member #270584, joined on 2017-11-27 20:26:59 +08:00
wlxz's recent replies
Dec 6, 2017
Replied to a topic by wlxz Python 怎么将 tuple 作为 torndb 查询的 params 传进去?
原题答案如下:
def bar(*args):
print(type(args))
print(args)

t = ('1','2','3')
bar(*t)
参考:
https://stackoverflow.com/questions/5710391/converting-python-dict-to-kwargs
Dec 3, 2017
Replied to a topic by wlxz Python 怎么将 tuple 作为 torndb 查询的 params 传进去?
出发点为: 在不可知数 多查询条件下,怎么用 torndo 进行查询
自己研究了一下,用**kwargs 方式解决了,
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3130 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
♥ Do have faith in what you're doing.