Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Batch use the key in the dictionary as the variable value as the variable value

Shulou Source: shulou.com Published: 2022-06-03 05:56:48 11月23日 Update

Variables in python are maintained in the form of a dictionary:

Local variables:

> locals () .update ({'axiaqizhuo 1) > > b2})

Global variables:

> globals () .update ({'axiaxian1}) > A1

Tags: Variables dictionaries global local form Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno Linux Apple Shulou Tech Info