- Hands-On Data Science and Python Machine Learning
- Frank Kane
- 60字
- 2021-07-15 17:15:01
The sort function
Finally, let's have a built-in sort function that you can use:
z = [3, 2, 1]
z.sort()
z
So if I start with list z, which is 3,2, and 1, I can call sort on that list, and z will now be sorted in order. The output of the above code is as follows:
[1, 2, 3]
推薦閱讀
- PWA入門與實踐
- JMeter 性能測試實戰(第2版)
- Java加密與解密的藝術(第2版)
- Java持續交付
- STM32F0實戰:基于HAL庫開發
- Nginx Essentials
- Serverless架構
- 深入理解Android:Wi-Fi、NFC和GPS卷
- SQL Server從入門到精通(第3版)
- 單片機C語言程序設計實訓100例
- 微服務架構深度解析:原理、實踐與進階
- Machine Learning in Java
- Learning AngularJS for .NET Developers
- Node Cookbook(Second Edition)
- Getting Started with Eclipse Juno