Creating or assigning variables from a dictionary in Python

后端 未结 7 1625
一生所求
一生所求 2020-12-06 10:05

I tried to ask a question normally once in here but nobody understands what I want to ask. So I\'ve found example in PHP.

// $_POST = array(\'address\' =>         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 10:40

    I recommend creating a class to hold the variables you're trying to create. Alex Martelli's famous bunch recipe would get you almost all of the convenience you are asking for, without resorting to modifying the local symbol table (which the docs specifically warn against doing).

提交回复
热议问题