How to iterate over function arguments

后端 未结 5 739
清歌不尽
清歌不尽 2020-12-29 01:40

I have a Python function accepting several string arguments def foo(a, b, c): and concatenating them in a string. I want to iterate over all function arguments

5条回答
  •  余生分开走
    2020-12-29 02:30

    I would use sed s/None//g, but that's not in python, but you can probably use os.popen() to do that.

提交回复
热议问题