摘要: def func(): try: x = 1 y = 0 assert x + y == 0, 'x +y != 0, x + y is {}'.format(x + y) except AssertionError as err: # raise AssertionError('abc ') # 阅读全文
posted @ 2021-12-28 23:08 焰红火 阅读(118) 评论(0) 推荐(0)
摘要: Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with - 阅读全文
posted @ 2021-12-28 21:03 焰红火 阅读(73) 评论(0) 推荐(0)
摘要: A school is trying to take an annual photo of all the students. The students are asked to stand in a single file line in non-decreasing order by heigh 阅读全文
posted @ 2021-12-28 20:12 焰红火 阅读(79) 评论(0) 推荐(0)