#700. python-列表-定义列表,并把第3个元素替换,再通过append()函数增加新的字符串并打印
python-列表-定义列表,并把第3个元素替换,再通过append()函数增加新的字符串并打印
Background
Description
定义列表['bianchuangxiaojiang', 'baidu', 2018, 2022],并把第3个元素替换为2020并打印列表,再通过append()函数增加'dji'并打印
Format
Input
Output
Samples
['bianchuangxiaojiang', 'baidu', 2018, 2022]
2018
2020
['bianchuangxiaojiang', 'baidu', 2020, 2022]
['bianchuangxiaojiang', 'baidu', 2020, 2022, 'dji']