- 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
推薦閱讀
- Docker and Kubernetes for Java Developers
- CockroachDB權(quán)威指南
- 構(gòu)建移動網(wǎng)站與APP:HTML 5移動開發(fā)入門與實(shí)戰(zhàn)(跨平臺移動開發(fā)叢書)
- Production Ready OpenStack:Recipes for Successful Environments
- Instant 960 Grid System
- 人人都是網(wǎng)站分析師:從分析師的視角理解網(wǎng)站和解讀數(shù)據(jù)
- Visual C++應(yīng)用開發(fā)
- 學(xué)Python也可以這么有趣
- 零基礎(chǔ)學(xué)單片機(jī)C語言程序設(shè)計(jì)
- Python Data Analysis Cookbook
- Mastering Unity 2D Game Development(Second Edition)
- C語言從入門到精通
- Node.js實(shí)戰(zhàn):分布式系統(tǒng)中的后端服務(wù)開發(fā)
- INSTANT Premium Drupal Themes
- Dart:Scalable Application Development