Skip to content

Instantly share code, notes, and snippets.

@lhsfcboy
Created January 16, 2018 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lhsfcboy/98b7532abd2834cf12e82ccb6d5a814e to your computer and use it in GitHub Desktop.
Save lhsfcboy/98b7532abd2834cf12e82ccb6d5a814e to your computer and use it in GitHub Desktop.
python中的枚举类型, 有待整理
from enum import Enum, unique
@unique
class Side(Enum):
Buy = 0
Sell = 1
class OrderType(Enum):
Market = 0
Limit = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment