How to Access Function variables in Another Function

后端 未结 5 1774
梦如初夏
梦如初夏 2020-12-10 09:29

I have a small issue while calling multiple variables in python one function to another. Like I have to access the variable of xxx() variables in yyy(). Help me to do this.?

5条回答
  •  自闭症患者
    2020-12-10 10:07

    The answers people gave above are correct. But from a design perspective this is not something correct. Method local variables are mean to be local. If at all there is something that needs to be shared across a file or some set of methods I suggest you use file level variables or constants.

提交回复
热议问题