请教,Python 如何将一变量做为函数名

2025-06-20 15:15:58
推荐回答(1个)
回答1:

可以把变量设置为全局变量:def fun1(): global var1 ...def fun2(): global var1