Skip to content

Tany99/-py-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

-py-

简单的py代码 from queue import Queue

class SegmentTreeNode(object): class SegmentTreeNode: def init(self, start, end, val, left=None, right=None): self.start = start self.end = end @@ -17,10 +17,10 @@ def init(self, start, end, val, left=None, right=None): self.right = right

def __str__(self):
    return "val: %s, start: %s, end: %s" % (self.val, self.start, self.end)
    return f"val: {self.val}, start: {self.start}, end: {self.end}"

class SegmentTree(object): class SegmentTree: """ >>> import operator >>> num_arr = SegmentTree([2, 1, 5, 3, 4], operator.add)

print('9+4659')

About

简单的py代码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published