【发布时间】:2016-06-21 09:48:29
【问题描述】:
我有一个哈希表,其键的模式为 USER_TEL,例如:
bob_123456 : Some address
mary_567894 : other address
john_123456 : third address
现在,我想获取所有密钥中具有相同 TEL 的用户的地址。
我想到的是:
tel = 123456
r.hmget('address_book', '*_%s' % tel)
我得到[None] 而不是值。
【问题讨论】: