摘要: 1. 扩展维度 要将一个二维的数据扩展为三维: 1 print("扩展之前:", img_Y_blur.shape) 2 img_Y_blur = np.expand_dims(img_Y_blur, 2) 3 print("扩展之后:", img_Y_blur.shape) 运行结果: 扩展之前: 阅读全文
posted @ 2021-05-27 21:59 抚琴尘世客 阅读(6338) 评论(0) 推荐(0) 编辑
摘要: 1. 题目 给定一个含有数字和运算符的字符串,为表达式添加括号,改变其运算优先级以求出不同的结果。你需要给出所有可能的组合的结果。有效的运算符号包含 +, - 以及 * 。 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/different-wa 阅读全文
posted @ 2021-05-27 21:50 抚琴尘世客 阅读(88) 评论(0) 推荐(0) 编辑