Get a specific number from a very long string

Published: 17/09/2019
Get a specific number from a very long string
Source: STACKOVERFLOW.COM

How can I write a python program to find all the consecutive numbers of pi with a million digits in a txt file by Python? eg, if I want to find all the six-digit consecutive numbers, I can run the program and output might show ['123456', '234567'.....] are exist if I want to find all the three-digit consecutive numbers, the output might show ['123', '234'.....] are exist Thank you!

Read more
Related news
Comment
FACEBOOK