请教:python中如何产生类似C中的enum序列?

4 views
Skip to first unread message

GF Y

unread,
Dec 29, 2009, 6:24:42 AM12/29/09
to pyth...@googlegroups.com
如题,谢谢!

smallfish

unread,
Dec 29, 2009, 7:26:22 PM12/29/09
to pyth...@googlegroups.com
去找找cython扩展把,cdef阔以
--
blog: http://chenxiaoyu.org/blog/


2009/12/29 GF Y <ygf...@gmail.com>
如题,谢谢!

--
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:pyth...@googlegroups.com
退订: http://tinyurl.com/45a9tb //针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp

ubunoon

unread,
Dec 29, 2009, 9:21:50 PM12/29/09
to pyth...@googlegroups.com
写个字典,然后依次声明为一个值就是了!

2009/12/30 smallfish <smallf...@gmail.com>



--
To be pythoner
My blog: http://www.cnblogs.com/ubunoon/

杨柳清风

unread,
Dec 30, 2009, 3:09:03 AM12/30/09
to python-cn`CPyUG`华蟒用户组(中文Py用户组)
(One, Two, Three, Four) = range(1,5)

On 12月29日, 下午7时24分, GF Y <ygf2...@gmail.com> wrote:
> 如题,谢谢!

Reply all
Reply to author
Forward
0 new messages