程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Analysis of level 2 real questions (multiple choice questions) of Python programming level test for youth software programming of Electronic Society March 2021

編輯:Python

2021 year 3 month Python Analysis of real questions of level 2 programming test

choice question ( common 25 topic , Each question 2 branch , common 50 branch )

1、 For dictionaries infor = {"name":"tom","age":13,"sex":"male"}, Delete “age”:13 The correct operation of key value pairs is

A、del infor['age']

B、del infor["age":13]

C、del infor

D、infor.clear()

answer :A

Test point analysis : Check dictionary operation , Delete an element from the dictionary , It is deleted according to the key of the dictionary , So the answer A,D The option is to clear the entire dictionary ,BC Is the wrong format

2、 use python Statement calculation : The length and width of the rectangle are 4 and 5, Then the circumference of the rectangle is

A、

B、


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved