73

【23】Python基础笔记2-只争朝夕-51CTO博客

 6 years ago
source link: http://blog.51cto.com/000011211684/2068243
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1、请用代码实现:利用下划线将列表的每一个元素拼接成字符串li=['alex','eric','rain']print("_".join(li))print(li[0]+"_"+li[1]+"_"+li[1])3、写代码,有如下列表,按照要求实现每一个功能li=['alex','eric','rain']•计算列表长度并输出print(len(li)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK