W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_reversed.py:
alph = ["a", "b", "c", "d"] ralph = reversed(alph) for x in ralph: print(x)
x
alph
=
[
"a"
,
"b"
,
"c"
,
"d"
]
ralph
=
reversed
(
alph
)
for
x
in
ralph
:
print
(
x
)