#!/usr/bin/env python3

import re

def lineprocess(line):
	res = ''
	index = 47
	if line[index] == 'e':
		index = index+2
	if line[index] == '=':
		index = index+1
	while True:
		if line[index] == 'm':
			break
		res = res+line[index]
		index = index+1
	return res

def main():
	index = 1
	text = open('data.txt', "r") # open()
	for line in text.readlines(): # readlines()
		res = lineprocess(line) # res => str
		#print(('%d '+res) % index)
		print(res)
		index = index+1

if __name__ == '__main__':
	main()

2017/3/6

相关文章:

  • 2021-11-24
  • 2021-07-09
  • 2021-10-15
  • 2021-05-17
  • 2022-02-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-04-18
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案