用于中文数字系统的数学符号 (繁/简体), e.g. positive = ['正', '正'] negative = ['负', '負'] point = ['点', '點']
| 525 | |
| 526 | |
| 527 | class MathSymbol(object): |
| 528 | """ |
| 529 | 用于中文数字系统的数学符号 (繁/简体), e.g. |
| 530 | positive = ['正', '正'] |
| 531 | negative = ['负', '負'] |
| 532 | point = ['点', '點'] |
| 533 | """ |
| 534 | |
| 535 | def __init__(self, positive, negative, point): |
| 536 | self.positive = positive |
| 537 | self.negative = negative |
| 538 | self.point = point |
| 539 | |
| 540 | def __iter__(self): |
| 541 | for v in self.__dict__.values(): |
| 542 | yield v |
| 543 | |
| 544 | |
| 545 | # class OtherSymbol(object): |