我上个月在Android Developers Doc中发现了这个问题,但是今天我找不到它。
有什么办法可以帮助我吗? 谢谢!
答案 0 :(得分:1)
它可能已从文档中删除,因为这是一个隐藏的常量,至少在Android 9上如此:
http://androidxref.com/9.0.0_r3/xref/frameworks/base/core/java/android/content/Intent.java#2638
my_list = [['1', '2', '3'], ['7','8','9','10'], ['1','3','4','5'], ['10','11','12','13']]
w = ['1', '2', '3'] -> True
a = ['1','2'] -> True
b = ['7','8','9','10'] -> True
f = ['1', '0'] -> False
c = [['1','3','4','5'], ['10','11','12','13']] -> True
d = [['1','3','4','4'], ['10','11','12','15']] -> False
def x_in_y(search_list, my_list):
return any([s in my_list for s in search_list])
print x_in_y(c, my_list)
print x_in_y(a, my_list)