好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Python的枚举Enum

枚举是常用的功能,看看Python的枚举.

from enum import Enum

Month = Enum('Month', ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')) 

查看更多关于Python的枚举Enum的详细内容...

  阅读:39次

上一篇: Map

下一篇:Python基础知识教程