This week's lab was a bunch of fun. A link to the paper can be found here. I looked up some sources to confirm my results and found this site.
Apart from that not very much new information was given, there was a cool example of the zip(),property() functions of python in the lecture notes...
>>>zip(['2','4','f'],['a','b','%'])
>>>['2a','4b','f%']
property() simply protects a target variable..
(example given):
def get_children(self: 'RegexTreeNode') -> list:"""get private children""" return self._childrenchildren = property(get_children, None, None, None)
#c is in instance containing the above function c.children = someobject
No comments:
Post a Comment