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)

 

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-01-11
  • 2021-08-15
  • 2022-12-23
  • 2021-07-09
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
相关资源
相似解决方案