56
如何在类中将字符串转换成变量名?
source link: https://www.v2ex.com/t/443030
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Python - @dwjgwsm - import numpy as npclass aa: def run(self): x='abcd' v=np.arange(5)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK