save game :)


SUBMITTED BY: bitcoinsachen

DATE: Oct. 22, 2016, 7:37 p.m.

FORMAT: Python 3

SIZE: 954 Bytes

HITS: 705

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. Created on Mon Oct 17 16:24:09 2016
  5. @author: andreaskuk
  6. @Matrikelnummer: 1525911
  7. @Seminar: Wissenschaftliches Programmieren in Python
  8. """
  9. import numpy as np
  10. mypath= 'imsil_out'
  11. from os import listdir
  12. onlyfiles= [f for f in listdir(mypath) if f.endswith('.out')] #suche datein mit der Endung .out im ordner mypath
  13. #print('filelist: ',onlyfiles)
  14. """for daten in i:
  15. i=i+1
  16. i=0"""
  17. tiltliste=onlyfiles
  18. y
  19. i=0
  20. while i <=13:
  21. file = mypath+'/'+onlyfiles[i]
  22. searchfile = open(file, "r")
  23. for line in searchfile:
  24. if "tilt=" in line:
  25. # print (line)
  26. auslesen = line
  27. sss=auslesen[18:23]
  28. searchfile.close()
  29. # print(line)
  30. liste[i]=auslesen[18:23]
  31. #print(auslesen[18:23])
  32. if i > 13:
  33. break
  34. i=i+1
  35. print(liste)
  36. #print(auslesen[18:23])
  37. #print(f)

comments powered by Disqus