Python string interception problem.

for example, I have a string whose content is:

Python has a rich and powerful library. It is often nicknamed glue language and can easily connect modules made in other languages (especially C/CPP). A common application scenario is to use Python to quickly generate a prototype of the program (sometimes even the final interface of the program), and then rewrite the parts with special requirements in a more appropriate language, such as the graphics rendering module in 3D games, which can be rewritten with C/CPP and encapsulated as an extension library that can be called by Python. It is important to note that you may need to consider platform issues when using extended class libraries, and some may not provide cross-platform implementations.

so I want to intercept from "it is often nicknamed glue language" to the nearest full stop. How do I intercept it?


check the matching result


actually it's easier to use split's method
assume that your string is your_str
you can use your_str.split (') if you want to get your sentence. [1] is fine

Menu