- Hands-On Data Science and Python Machine Learning
- Frank Kane
- 56字
- 2021-07-15 17:15:00
The append function
If you want to just add one more thing to that list, you can use the append function. So I just want to stick the number 9 at the end, there we go:
x.append(9)
x
The output of the above code is as follows:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
推薦閱讀
- R語言數據可視化之美:專業圖表繪制指南
- OpenCV for Secret Agents
- 精通搜索分析
- Blockly創意趣味編程
- PySide GUI Application Development(Second Edition)
- KnockoutJS Starter
- JavaScript 程序設計案例教程
- 深度學習原理與PyTorch實戰(第2版)
- BeagleBone Robotic Projects(Second Edition)
- 例解Python:Python編程快速入門踐行指南
- Effective C++:改善程序與設計的55個具體做法(第三版)中文版(雙色)
- ASP.NET Core 2 High Performance(Second Edition)
- Instant AppFog
- Learn C Programming
- Salt Cookbook