zip函数返回的是一个序列,可以直接通过print()函数输出。
查看答案
zip变量可以通过list()函数转换为列表。
A. 对
B. 错
zip()函数可以将两个序列中对应位置的元素压缩为元组,如果对应位置有缺失,程序会报错。
A. 对
B. 错
用于解压缩的列表不需要遵循特定格式,只需要内部元素为元组即可。
A. 对
B. 错
Translate the following English to Chinese.Seal of the United States Department of Homeland Security. A graphically styled American eagle appears in a circular blue field. The eagle's outstretched wings break through an inner red ring into an outer white ring that contains a circular placement of the words "U.S. DEPARTMENT OF" in the top half and "HOMELAND SECURITY" in the bottom half. The outer white ring has a silvery gray border. As in The Great Seal, the eagle’s left claw holds an olive branch with 13 leaves and 13 seeds while the right claw grasps 13 arrows. Centered on the eagle's breast is a shield divided into three sections containing elements that represent the homeland "from sea to shining sea." The top element, a dark blue sky, contains 22 stars representing the original 22 agencies and bureaus that have come together to form the department. The left shield element contains white mountains behind a green plain underneath a light blue sky. The right shield element contains four wave shapes representing the oceans, lakes and waterways alternating light and dark blue separated by white lines.