How to get all the local variables defined inside the function in python?

前端 未结 0 1835
无人及你
无人及你 2020-12-19 05:07

Is there any way to print all the local variables without printing them expilictly ?

def some_function(a,b):
    name=\'mike\'
    city=\'new york\'

    #her         


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