字符串认为我有一个字符串说sample
这是如何找到无段落Python中
"ApacheBench (ab) is a benchmarking tool that can load test servers by sending an arbitrary number of concurrent requests. It was designed for testing Apache installations.
cURL is a command line tool to send and receive data using various protocols like HTTP, HTTPS, FTP, LDAP etc. It comes by default with most of the Linux distributions.
Wrk is a tool that is similar to traditional Apache Benchmark. Configuration and execution are through a command line tool. It has very few but powerful settings, only the essential to generate HTTP load."
有3个段落在上面string.How我可以使用python的段落数?
你试过计数换行符? – khelwood
看看[这个](https://www.safaribooksonline.com/library/view/python-cookbook/0596001673/ch04s09.html)文章 –
@MauroBaraldi:指点OP肯定是矫枉过正。除此之外,我希望你已经注意到这篇文章来自Python 2.1时代(〜20岁) - 对于一个需要任意分隔符的文本文件,一个生成器可以完成约6行的工作码。 – jsbueno