python学习5—一些关于基本数据结构的练习题 # 1. use _ to connect entries in a list # if there are no numbers in list li = ['alex','eric','rain'] v = '_'.join(li) print(v) # if there are numbers in list li = ['alex','eric',123] nli = [] # initialize a list new li (nli)…
Python 数据结构 本章介绍 Python 主要的 built-type(内建数据类型),包括如下: Numeric types int float Text Sequence Type str Boolean bool Sequence Types list tuple range Set Types set Mapping Types dict type() 函数 type…