(self)
| 924 | self.chntext = chntext |
| 925 | |
| 926 | def chntext2fraction(self): |
| 927 | denominator, numerator = self.chntext.split("分之") |
| 928 | return chn2num(numerator) + "/" + chn2num(denominator) |
| 929 | |
| 930 | def fraction2chntext(self): |
| 931 | numerator, denominator = self.fraction.split("/") |