-->
当前位置:首页 > 题库

单选题:(样卷)下面定义字典的语句那个是正确的?

Luz5年前 (2021-05-10)题库2110
(样卷)下面定义字典的语句那个是正确的?
@[A](2)

A. momthdays=dict(Jan=31,Feb=28,Mar=31,Apr=30)
B. momthdays=dict("Jan"=31,"Feb"=28,"Mar"=31,“Apr"=30)
C. momthdays={Jan:31,Feb:28,Mar:31,Apr:30}
D. momthdays={Jan=31,Feb=28,Mar=31,Apr=30}




A.momthdays=dict(Jan=31,Feb=28,Mar=31,Apr=30)
B.momthdays=dict("Jan"=31,"Feb"=28,"Mar"=31,“Apr"=30)
C.momthdays={Jan:31,Feb:28,Mar:31,Apr:30}
D.momthdays={Jan=31,Feb=28,Mar=31,Apr=30}


答案:A