fix name error

This commit is contained in:
sangge-rockpi 2024-01-19 23:07:09 +08:00
parent d872733763
commit 8307660cfb

View File

@ -2,7 +2,7 @@
class Solution: class Solution:
def remanToInt(self, s: str) -> int: def romanToInt(self, s: str) -> int:
roman_map = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000} roman_map = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000}
num = 0 num = 0
prev_value = 0 prev_value = 0