Python基础学习
1.工具的安装
http://c.biancheng.net/view/5804.html
学习版
https://www.jianshu.com/p/175666779e3a
2.python环境安装
http://c.biancheng.net/view/4161.html
python基础
遍历list
https://blog.csdn.net/whatday/article/details/100557888
函数记录
isinstance() 函数
案例实践
L = [
[‘Apple’, ‘Google’, ‘Microsoft’],
[‘Java’, ‘Python’, ‘Ruby’, ‘PHP’],
[‘Adam’, ‘Bart’, ‘Lisa’]
]
# 打印Apple:
for i in L:
if isinstance(i,list):
for j in i:
if (j=='Apple'):
print(j)
# 打印Python:
for i in L:
if isinstance(i,list):
for j in i:
if (j=='Python'):
print(j)
# 打印Lisa:
for i in L:
if isinstance(i,list):
for j in i:
if (j=='Lisa'):
print(j)
tuple类似于java数组
学习网站
https://www.liaoxuefeng.com/wiki/1016959663602400/1017092876846880