X Tutup
Skip to content

Commit d018301

Browse files
committed
difference between py2 and py3
1 parent c080361 commit d018301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

n005.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Python2有基于ASCII的str()类型,其可通过单独的unicode()函数转成
294294

295295
AttributeError: type object 'xrange' has no attribute '__contains__'
296296

297-
###关于Python 2中xrange()与Python 3中range()之间的速度差异的一点说明:
297+
##关于Python 2中xrange()与Python 3中range()之间的速度差异的一点说明:
298298

299299
有读者指出了Python 3中的range()和Python 2中xrange()执行速度有差异。由于这两者的实现方式相同,因此理论上执行速度应该也是相同的。这里的速度差别仅仅是因为Python 3的总体速度就比Python 2慢。
300300

0 commit comments

Comments
 (0)
X Tutup