摘要: lEETCODE 算法题 0013 罗马数字转整数 阅读全文
posted @ 2019-10-13 09:26 xt12321 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 0013 罗马数字转整数 class Solution: def romanToInt(self, s: str) int: t_d = { "I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000, } num = 0 for 阅读全文
posted @ 2019-10-13 09:20 xt12321 阅读(196) 评论(0) 推荐(0) 编辑