摘要: 1.栈思想:后进先出 相关题目: 编程题目:写一段代码,判断包含括号 { [ ( ) ] } 的表达式是否合法 #!/usr/bin/env python3 def judge(ex: str): if len(ex) % 2 == 1: return False stack_list = [] p 阅读全文
posted @ 2023-01-09 23:34 joy小羲 阅读(19) 评论(0) 推荐(0)