漢字數字轉化爲阿拉伯數字

<pre name="code" class="python">#漢字數字轉化爲阿拉伯數字 def hanTwoMoney(s): money = {u'一':1,u'二':2,u'三':3,u'四':4,u'五':5,u'六':6,u'七':7,u'八':8,u'九':9} if len(s) == 0: return None sum = 0 if len(s) >= 0: i
相關文章
相關標籤/搜索