对于这个Python不太理解,希望和大家一起讨论一起研究学习,非常感谢
就是用一个for循环语句和if语句,统计这个元组tuple里有多少个是单词
count=0 words = ["hello", 10, "goodbye",3, "goodnight", 5] for w in words: if not w.isdigit(): count++ print(count)