随笔 - 63,  文章 - 0,  评论 - 4,  阅读 - 10万
11 2020 档案
python使用反射来实现通过字符串调用函数
摘要:class A: def a(self, params): print("I from a, params is {}".format(params)) @staticmethod def b(params): print("I from b, params is {}".format(params 阅读全文
posted @ 2020-11-05 22:52 盈盈的月儿 阅读(400) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示