- Hands-On Data Science and Python Machine Learning
- Frank Kane
- 57字
- 2021-07-15 17:15:01
Dereferencing an element
We can also dereference the elements of a tuple, so element number 2 again would be the third element, because we start counting from 0, and that will give me back the number 6 in the following screenshot:
y = (4, 5, 6)
y[2]
The output to the above code is as follows:
6
推薦閱讀
- HTML5+CSS3王者歸來
- Web程序設計及應用
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- SoapUI Cookbook
- arc42 by Example
- 編程珠璣(續)
- OpenCV 3和Qt5計算機視覺應用開發
- Animate CC二維動畫設計與制作(微課版)
- aelf區塊鏈應用架構指南
- 從學徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- PHP+MySQL+Dreamweaver動態網站開發實例教程
- Building Minecraft Server Modifications
- 大學計算機基礎(第2版)(微課版)
- 劍指MySQL:架構、調優與運維
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰