Mar-26-2019, 11:34 PM
New to python, from .Net. I know python does not support arrays.
This class
Can I convert my class structure into a dictionary or something ??
Please advise
This class
class myStructure: """ My custom data structure for arrays """ def __init__(self, date1=dt.datetime(2000,12,31), num1=0, str1="Nothing"): self.date1 = date1 self.num1 = num1 self.str1 = str1I can do this ONCE
# Class Instance res = my.myStructure() res.str1 = "Yes" res.num1 = 50 res.date1 = my.dt.datetime.strptime("05/01/1950","%m/%d/%Y")Question: How can I use myStructure to store many records of data (like an array), or may be I cant?
Can I convert my class structure into a dictionary or something ??
Please advise