Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import re
  2.  
  3. class SystemDecyzyjny:
  4.  
  5. def printFile(self):
  6. f = open(self)
  7. print(f.read())
  8.  
  9. def splitIntoLines(self):
  10. return re.split(r'\n', self)
  11.  
  12. def getNAttribute(self):
  13. whichAttribute = 0
  14. intArray=list.insert()
  15. for i in self:
  16. if 'n' in i:
  17. print(i)
  18.  
  19. def main():
  20. SystemDecyzyjny.printFile("australian-type.txt")
  21. array = SystemDecyzyjny.splitIntoLines(open("australian-type.txt").read())
  22. print(array)
  23.  
  24. SystemDecyzyjny.getNAttribute(array)
  25.  
  26. if __name__ == "__main__":
  27. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement