DIGIT类
| 433 | |
| 434 | |
| 435 | class Digit: |
| 436 | """ |
| 437 | DIGIT类 |
| 438 | """ |
| 439 | |
| 440 | def __init__(self, digit=None, chntext=None): |
| 441 | self.digit = digit |
| 442 | self.chntext = chntext |
| 443 | |
| 444 | # def chntext2digit(self): |
| 445 | # return chn2num(self.chntext) |
| 446 | |
| 447 | def digit2chntext(self): |
| 448 | return num2chn(self.digit, alt_two=False, use_units=False) |
| 449 | |
| 450 | |
| 451 | class TelePhone: |
no outgoing calls
no test coverage detected