Python: What does the * mean in method arguments list?

后端 未结 0 1233
Happy的楠姐
Happy的楠姐 2020-12-09 18:07

See: create method

class ExampleClass():

    def example_method(self, a: str, *, b: str) -> str:
       .
       .          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题