思路,用read来全部读取,然后替换带*的元素来解决.代码如下 import numpy as np import re inf = open('SF.usr') title = inf.readline() l = inf.read() d = re.split('[^0-9.*]+',l.strip()) for i,x in enumerate(d): if x.find('*') != -1 : f = x.split('*') number = int(f[0]) value = f[
2.1 Producer API We encourage all new development to use the new Java producer. This client is production tested and generally both faster and more fully featured than the previous Scala client. You can use this client by adding a dependency on the c