有几个元祖的思路
T = ((1+2), ((1+2),), ('a'+'b'), (1, ), (1, 2, 3, 4, 5)) s = 0 for i in T: if '(' in str(i): s+=1 print(s) #这个思路如何
T = ((1+2), ((1+2),), ('a'+'b'), (1, ), (1, 2, 3, 4, 5)) s = 0 for i in T: if '(' in str(i): s+=1 print(s) #这个思路如何
2020-09-20
举报