天天看點

朝文分享(24):深入python語言(五)——組合篇(中)

作者:LearningYard學苑
朝文分享(24):深入python語言(五)——組合篇(中)

分享興趣,傳播快樂,增長見聞,留下美好!

親愛的您,這裡是LearningYard新學苑。

今天小編為大家帶來“Python入門指南”,歡迎您的通路。

Share interest, spread happiness, increase knowledge, and leave beautiful.

Dear, this is the LearingYard Academy!

Today, the editor brings in-depth python language (5) —— Combined ,welcome to visit!

朝文分享(24):深入python語言(五)——組合篇(中)

一、清單類型的概念

清單是包含0個或多個元素的有序序列,屬于序列類型。與元組不同,清單的長度和内容都是可變的,可自由對清單中的資料進行增加、删減和替換。清單沒有長度限制,元素類型可以不同,使用靈活。清單用中括号表示,也可以通過list函數将元組或字元串轉換成清單。直接使用list()函數傳回一個空清單。

A list is an ordered sequence of 0 or more elements, belonging to the sequence type. Unlike tuples, lists are variable in length and content, allowing you to add, subtract, and replace the data in the list. The list has no length limit, the element type can be different, and the use is flexible. A list is represented by brackets, or a tuple or string can be converted to a list using the list function. Use the list () function directly to return an empty list.

朝文分享(24):深入python語言(五)——組合篇(中)

二、清單類型的操作

清單的操作符、函數共有28種,可以對清單進行多種操作,解決各種問題。下面是操作符和函數的分享:

There are 28 kinds of list operators and functions, which can perform various operations on the list and solve various problems. Here is the sharing of operators and functions:

朝文分享(24):深入python語言(五)——組合篇(中)
朝文分享(24):深入python語言(五)——組合篇(中)
朝文分享(24):深入python語言(五)——組合篇(中)

今天的分享就到這裡了,

如果您對文章有獨特的想法,

歡迎給我們留言。

讓我們相約明天,

祝您今天過得開心快樂!

That's all for today's sharing.

If you have a unique idea about the article,

please leave us a message,

and let us meet tomorrow.

I wish you a nice day!

參考資料

《Python語言程式設計基礎》

翻譯:網易有道翻譯

本文由LearningYard學苑整理并發出,如有侵權請背景留言溝通.

文案|Dongyang

排版|Dongyang

稽核|hong

Learning Yard 新學苑

繼續閱讀