- 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
推薦閱讀
- Vue 3移動Web開發與性能調優實戰
- Puppet 4 Essentials(Second Edition)
- Python程序設計教程(第2版)
- Flutter開發實戰詳解
- ASP.NET Core 2 and Vue.js
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Amazon S3 Cookbook
- JSP開發案例教程
- FFmpeg入門詳解:音視頻原理及應用
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- Python High Performance Programming
- NGINX Cookbook
- 軟件測試實用教程
- C++語言程序設計
- BeagleBone Robotic Projects(Second Edition)