我正在测试 re 表达式,书中的示例是:
if re.search('^X\S*: [0-9.]+', line):
但是用我的表达,我得到了相同的结果:
if re.search('^X\S*: [0-9]', line):
有什么区别?,我看不到什么?。谢谢你。
缥缈止盈
慕少森
相关分类