CARDINAL类
| 417 | # different types of rewriters |
| 418 | # ================================================================================ # |
| 419 | class Cardinal: |
| 420 | """ |
| 421 | CARDINAL类 |
| 422 | """ |
| 423 | |
| 424 | def __init__(self, cardinal=None, chntext=None): |
| 425 | self.cardinal = cardinal |
| 426 | self.chntext = chntext |
| 427 | |
| 428 | def chntext2cardinal(self): |
| 429 | return chn2num(self.chntext) |
| 430 | |
| 431 | def cardinal2chntext(self): |
| 432 | return num2chn(self.cardinal) |
| 433 | |
| 434 | |
| 435 | class Digit: |
no outgoing calls
no test coverage detected