金额小写转大写
摘要:function formatMoneyUpper(n) { if(n==""){ return ""; } if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){ return "数据非法"; } var unit = "千百拾亿千百拾万千百拾元角分"; var str = ""; ...
阅读全文
posted @
2017-08-31 08:22
vsmart
阅读(123)
推荐(0) 编辑
python3 简单抓取网页
摘要:import urllib.requestresp=urllib.request.urlopen("http://fanyi.baidu.com/")html=resp.read()html = html.decode("utf-8")print (html)
阅读全文
posted @
2017-08-19 07:34
vsmart
阅读(192)
推荐(0) 编辑