日期:2024-06-20
浙教版(2020)2022初中信息技术模拟试卷5试题详情
以下程序的运行结果是。
animals=['cat', 'dog', 'elephant', 'tiger']
for animal in animals:
print(animal, end=',')
a=len(animals)
print("a=", a)
试题所涉知识点
![知识点](http://webshot.zujuan.com/q/e2/11/3dcd4b62905b918cd69f5601b828_52814424kn.png?hash=db2593b65be59d7562beff01e820f27e&sign=61bbc6ba2dc0fdf5b20e73a56ff6b608&from=2&sort=0&parent_id=0)
animals=['cat', 'dog', 'elephant', 'tiger']
for animal in animals:
print(animal, end=',')
a=len(animals)
print("a=", a)