0
A
回答
9
這樣的東西在language reference中定義,不在本教程中。
元組和列表按照字典順序使用 相應元素的比較進行比較。這意味着爲了比較相等,每個元素 必須相等並且兩個序列必須是相同類型並且具有相同長度。
5
如果元組中的元素按順序相等,則兩個元組相等。
相關問題
- 1. 彙總使用某些成員的等價在元組(通過Python)元組
- 2. Python中的等價命令
- 3. python中的字符等價
- 4. Python中的inject()等價嗎?
- 5. python等價的MySQL「左連接」兩個元組列表
- 6. Python的等價物@
- 7. Python的等價性?
- 8. Python等價物repr()?
- 9. Python等價於ignoreboth:erasedups
- 10. Ruby的等價的Python setattr()
- 11. simplexml_load_string等價的Python/Django的
- 12. Python的等價物__setitem__
- 13. Python等價於Mathematica的ArrayPlot?
- 14. PHP等價於Python的requests.get
- 15. Python的等價物find2perl
- 16. Python等價於Mathematica的「LaguerreL」
- 17. python等價於ruby的__method__?
- 18. C#等價於python的struct.pack
- 19. Python等價物的matlab corr2
- 20. Ruby等價於Python的DictWriter?
- 21. C++等價於Python的doctests?
- 22. C#等價於Python的os.path.exists()?
- 23. python等價於ruby的`map.with_index`?
- 24. python等價的C++ getline()
- 25. 等價於python「dir」的Java?
- 26. python等價於ruby的StringScanner?
- 27. numpy(Python)中的matlab'ismember'的等價物?
- 28. 等價於Python的ObjectSpace的Python?
- 29. 等價的GUI組件Swing
- 30. python類中的聲明等價於_init_?
爲什麼不試試看? 'print(1,2)==(2,1)':-) – mgilson 2013-02-11 03:02:57
顯然,'(True,sum([]))==(0 ** 0,False)' – wim 2013-02-11 03:17:28