python read file with class
class Main(object):
def __init__(self, thing1, thing2):
self.thing1 = thing1
self.thing2 = thing2
with open('Your file') as f:
data = [i.strip().split() for i in f.readlines()]
python read file with class
class Main(object):
def __init__(self, thing1, thing2):
self.thing1 = thing1
self.thing2 = thing2
with open('Your file') as f:
data = [i.strip().split() for i in f.readlines()]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us