用于中文数字系统的数学符号 (繁/简体), e.g. positive = ['正', '正'] negative = ['负', '負'] point = ['点', '點']
| 155 | |
| 156 | |
| 157 | class MathSymbol(object): |
| 158 | """ |
| 159 | 用于中文数字系统的数学符号 (繁/简体), e.g. |
| 160 | positive = ['正', '正'] |
| 161 | negative = ['负', '負'] |
| 162 | point = ['点', '點'] |
| 163 | """ |
| 164 | |
| 165 | def __init__(self, positive, negative, point): |
| 166 | self.positive = positive |
| 167 | self.negative = negative |
| 168 | self.point = point |
| 169 | |
| 170 | def __iter__(self): |
| 171 | for v in self.__dict__.values(): |
| 172 | yield v |
| 173 | |
| 174 | |
| 175 | # class OtherSymbol(object): |