>>> from math import sqrt
>>> scope={}
>>> exec('sqrt=1',scope)
>>> sqrt(9)
3.0
>>> scope['sqrt']
1
>>>
最后
以上就是温暖心情最近收集整理的关于python in
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
>>> from math import sqrt
>>> scope={}
>>> exec('sqrt=1',scope)
>>> sqrt(9)
3.0
>>> scope['sqrt']
1
>>>
以上就是温暖心情最近收集整理的关于python in
发表评论 取消回复