import re
content = "a string which defines the name for this spider. the spider name is how the spider is located (and instantiated) by scrapy, so it must be unique. however, nothing prevents you from instantiating more than one instance of the same spider. this is the most important spider attribute and it’s required."
for line in re.split('\.|\?|!', content):
if line != "": #段落最后一句的时候,会多出来一个空字符串。
print(line.strip().capitalize())
print(line.strip().split()[0])