摘要:
目录导航: 1.for循环遍历列表 2.range()函数 3.对数字列表的统计操作 4.列表切片 5.复制列表 6.元组的定义 7.修改元组 1.for循环遍历列表 【实例】: countries = ['china','america','russia'] for country in coun 阅读全文
摘要:
错误提示: TypeError: can only concatenate str (not "int") to str 解释:字符串只能和字符串连接 错误代码: name = '小明' year = 14 print("他叫"+name+",他"+year+"岁了。") 修改错误:在year前面加 阅读全文