(self)
| 492 | self.chntext = chntext |
| 493 | |
| 494 | def chntext2fraction(self): |
| 495 | denominator, numerator = self.chntext.split('分之') |
| 496 | return chn2num(numerator) + '/' + chn2num(denominator) |
| 497 | |
| 498 | def fraction2chntext(self): |
| 499 | numerator, denominator = self.fraction.split('/') |