2007年09月03日 星期一 12:31
python-chinese,您好! 怎样遍历python中所有的有效变量和函数,并得到变量的类型? 2007-09-03
2007年09月03日 星期一 15:15
是这个吗? [(x,globals()[x].__class__.__name__) for x in globals().keys()] -----Original Message----- From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] On Behalf Of www Sent: 2007年9月3日 12:31 To: python-chinese Subject: [python-chinese] 怎样遍历python中所有的有效变量和函数 python-chinese,您好! 怎样遍历python中所有的有效变量和函数,并得到变量的类型? 2007-09-03 _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese
2007年09月05日 星期三 09:36
vars() On 9/3/07, HU Bo A <Bo.a.Hu在alcatel-sbell.com.cn> wrote: > 是这个吗? > > [(x,globals()[x].__class__.__name__) for x in globals().keys()] > > -----Original Message----- > From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] On Behalf Of www > Sent: 2007年9月3日 12:31 > To: python-chinese > Subject: [python-chinese] 怎样遍历python中所有的有效变量和函数 > > python-chinese,您好! > 怎样遍历python中所有的有效变量和函数,并得到变量的类型? > 2007-09-03 > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
Zeuux © 2025
京ICP备05028076号