擅长:python、mysql、java
<p>您可以使用多个后续操作来获取更多数据</p>
<pre><code>line = "This is line.1 www.abc.com. Mr."
t = iter(line)
b = next(t)
for i in line[:len(line)-1]:
a = next(t)
c = next(t)
if i == "." and (a.isdigit()): #for example, this checks to see if the value after the period is a number
print("True")
</code></pre>
<p>您可以通过将迭代保存到临时列表来获取以前的迭代</p>