How python skips the beginning of an iterative object
This article mainly introduces python how to skip the beginning of the iterative object, the article is very detailed, has a certain reference value, interested friends must read it!
Skip the beginning of the iterative object string_from_file = "" / / Wooden:. / / LaoLi:. / Whole:. Wooden LaoLi... "" Import itertools for line in itertools.dropwhile (lambda line: line.startswith ("/ /"), string_from_file.split ("): print (line) above is all the content of the article" how to skip the beginning of iterative objects by python ". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!