中文转拼音+动态变量名用法
from pypinyin import lazy_pinyin a = "电脑数码" name = "".join(lazy_pinyin(a)) exec(f'{name} = 333') print(diannaoshuma)
b = "321"
variable = locals()
variable[f"model_{b}"] = {"name": "qiaoer"}
print(variable[f"model_{b}"])
print(model_321)