Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- class SystemDecyzyjny:
- def printFile(self):
- f = open(self)
- print(f.read())
- def splitIntoLines(self):
- return re.split(r'\n', self)
- def getNAttribute(self):
- whichAttribute = 0
- intArray=list.insert()
- for i in self:
- if 'n' in i:
- print(i)
- def main():
- SystemDecyzyjny.printFile("australian-type.txt")
- array = SystemDecyzyjny.splitIntoLines(open("australian-type.txt").read())
- print(array)
- SystemDecyzyjny.getNAttribute(array)
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement