Új hozzászólás Aktív témák
-
válasz
cousin333
#3264
üzenetére
import os
start_string = 'START'
stop_string = 'STOP'
name_string = 'Adat:'
start = False
with open('szoveg.txt', 'r') as input_file:
with open('output.txt', 'w') as output_file:
for line in input_file:
if line.startswith(start_string):
start = True
elif line.startswith(stop_string):
start = False
elif start and name_string in line:
loc = line.find(name_string )
loc += len(name_string ) + 2
filename = line[loc:loc+8]
output_file.write(filename + '\n')
Új hozzászólás Aktív témák
- Windows 10
- gban: Ingyen kellene, de tegnapra
- VR topik
- sziku69: Fűzzük össze a szavakat :)
- Polgári repülőgép-szimulátorok
- Autóápolás, karbantartás, fényezés
- Spórolós topik
- EAFC 26
- A piac legerősebb kameráját ígéri a Xiaomi 17 Ultra
- Samsung Galaxy S24 Ultra - ha működik, ne változtass!
- További aktív témák...
- Inno3D GeForce RTX 4070 Ti X3 12G - Karácsonyi akcióban!
- Redragon Kumara K552 RGB Brown Switch magyar billentyűzet
- Lenovo Thinkpad P1 Gen 6 - i9-13980HX, 32GB, 2TB SSD, 16" WQUXGA (3840 2400), RTX 4090
- 15.gen! Intel Core Ultra 9 285K +16-32GB DDR5 RAM +hűtött VRM-es Z890 lap! GAR/SZÁMLA (a Te nevedre)
- OP AudioCodes C450HD Ip Phones - Szines kijelzős - Teams/ Zoom telefon - Új dobozos
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest

