1 #!/usr/bin/env python 2 def fun3(x) : 3 num =0 4 for i in x : 5 if i == "" : 6 num += 1 7 if num == 0 : 8 a = "没有空内容" 9 else : 10 a = "有空内容" 11 return print(a) 12 13 s = ['12','3124','wqw',''] 14 fun3(s)