15.运行下列语句,输出的结果是?( )
nums = [i * i for i in range(1, 10) if i % 3 == 0]
print(nums)
A. [1, 4, 9, 16, 25, 36, 49, 64, 81]
B. [9, 36, 81]
C. [3,6,9]
D. [4, 16, 36, 64]
15.运行下列语句,输出的结果是?( )
nums = [i * i for i in range(1, 10) if i % 3 == 0]
print(nums)
A. [1, 4, 9, 16, 25, 36, 49, 64, 81]
B. [9, 36, 81]
C. [3,6,9]
D. [4, 16, 36, 64]
Scratch3.0 全国青少年软件编程等级考试 Python Scratch图形化一级 Scratch图形化四级 Scratch图形化三级 Scratch图形化二级 电子学会