This website requires JavaScript.
Explore
Help
Register
Sign In
chenxuan
/
python
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
f43596e64319c90c6495c14217f28290bf703740
python
/
pythonProject
/
数据类型
/
列表
/
比较列表.py
T
4 lines
195 B
Python
Raw
Normal View
History
Unescape
Escape
no message
2025-10-21 18:00:11 +08:00
a1
=
[
1
,
2
,
34
]
a2
=
[
1
,
2
,
4
]
# 列表之间进行比较,以相同下标进行比较,从小到大进行比较,如果值相同则比较下一组元素,如果不同直接出结果
print
(
a1
>
a2
)
Reference in New Issue
Copy Permalink