mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typos
This commit is contained in:
@@ -505,7 +505,7 @@ AttributeError: 'tuple' object has no attribute 'remove'</samp>
|
||||
|
||||
<pre class=screen>
|
||||
<samp class=p>>>> </samp><kbd class=pp>v = ('a', 2, True)</kbd>
|
||||
<a><samp class=p>>>> </samp><kbd>(x, y, z) = v</kbd> <span>①</span></a>
|
||||
<a><samp class=p>>>> </samp><kbd>(x, y, z) = v</kbd> <span class=u>①</span></a>
|
||||
<samp class=p>>>> </samp><kbd class=pp>x</kbd>
|
||||
<samp class=pp>'a'</samp>
|
||||
<samp class=p>>>> </samp><kbd class=pp>y</kbd>
|
||||
|
||||
+1
-1
@@ -653,7 +653,7 @@ FAILED (failures=2)</samp></pre>
|
||||
result = 0
|
||||
index = 0
|
||||
for numeral, integer in romanNumeralMap:
|
||||
while s[index:index+len(numeral)] == numeral: <span>①</span>
|
||||
while s[index:index+len(numeral)] == numeral: <span class=u>①</span>
|
||||
result += integer
|
||||
index += len(numeral)
|
||||
return result</code></pre>
|
||||
|
||||
Reference in New Issue
Block a user