擅长:python、mysql、java
<p>因此,经过一些测试,Apero(tnx)的脚本可以工作99.9%
我把正则表达式改为“pat=重新编译(r'^(\w{2})(.+)$')
所以如果我做一个:</p>
<pre><code>data = ",03Y,04004,05005,0606,0A0A"
print '04 = '+res.get('04', '')
print '0A = '+res.get('0A', '')
</code></pre>
<p>我得到:</p>
<pre><code> 01 =
03 = Y
04 = 004
0A = 00A
</code></pre>
<p>现在唯一的问题是。。。你知道吗</p>
<pre><code>if data = "data = ",03Y,0404,05005,0606,0A00A"
0404 and not 04004
the output is:
01 =
03 = Y
04 =
0A = 00A
</code></pre>
<p>正如你所看到的注册汇率匹配的0404、0505、0606等不匹配。
如果数据=04004、05005等,则其工作。你知道吗</p>
<p>对工作有什么建议吗注册汇率
我的愿望是:</p>
<pre><code>"data = ",03Y,0404,05005,0606,0A0A"
01 =
03 = Y
04 = 04
0A = 0A
</code></pre>