- 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]
推薦閱讀
- Google Flutter Mobile Development Quick Start Guide
- Reporting with Visual Studio and Crystal Reports
- 嵌入式軟件系統測試:基于形式化方法的自動化測試解決方案
- C#程序設計實訓指導書
- HTML5+CSS3基礎開發教程(第2版)
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- PHP 編程從入門到實踐
- 老“碼”識途
- Apache Spark 2.x for Java Developers
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- Natural Language Processing with Java and LingPipe Cookbook
- Mastering Linux Security and Hardening
- Go語言底層原理剖析
- 愛上C語言:C KISS
- Clojure Polymorphism