摘要: 题单地址 https://ac.nowcoder.com/acm/problem/collection/2647 阅读全文
posted @ 2022-08-10 20:38 PHarr 阅读(26) 评论(0) 推荐(0) 编辑
摘要: # Notes 栈的模板 ```python class Stack(object): def __init__(self): self.items = [] def empty(self): return self.items == [] def push(self, item): self.it 阅读全文
posted @ 2022-08-10 19:40 PHarr 阅读(35) 评论(0) 推荐(0) 编辑
摘要: # 1:打印三角形 ```python n = int( input() ) for i in range( 1 , n + 1 ): for j in range( 0 , i ): print("*",end='') print("") ``` # 2:计算阶乘 ```cpp n = int( 阅读全文
posted @ 2022-08-10 10:57 PHarr 阅读(19) 评论(0) 推荐(0) 编辑