Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Oct. 22, 2016, 7 p.m.
FORMAT:
Python 3.0 Traceback
SIZE:
1.2 kB
Raw
Download
Tweet
HITS:
460
Go to comments
Report
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 17 16:23:07 2016
@Name: Übung2
@Matrikelnummer 1525460
@author: Matthias Katzenbeißer
"""
from os import listdir
myfolder= 'imsil_out'
#alle Files auflisten
allfiles = [f for f in listdir(myfolder)]
print("allfiles: ", allfiles)
#outFiles auflisten
outfiles = [f for f in listdir(myfolder) if f.endswith('.out')]
print("outfiles: ")
print("outfiles: ", outfiles)
i=0
while i <=13:
file = myfolder+'/'+outfiles[i]
f = open(file)
search = 'tilt='
line = f.read()
searchfile = open(file, "r")
for line in searchfile:
if "tilt=" in line:
auslesen = line
sss=auslesen[18:23]
searchfile.close()
print(auslesen[18:23])
i=i+1
"""
f01=open('ga30_0.out')
f02=open('ga30_10.out')
f03=open('ga30_20.out')
f04=open('ga30_30.out')
f05=open('ga30_40.out')
f06=open('ga30_50.out')
f07=open('ga30_60.out')
f08=open('ga30_70.out')
f09=open('ga30_75.out')
f10=open('ga30_80.out')
f11=open('ga30_85.out')
f12=open('ga30_87.out')
f13=open('ga30_88.out')
f14=open('ga30_89.out')
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus