国家开放大学2023年春《Python程序设计#-西安》补修任务参考答案

[复制链接]
查看: 39|回复: 0

186

主题

186

帖子

560

积分

高级会员

Rank: 4

积分
560
发表于 2024-5-28 15:06:09 | 显示全部楼层 |阅读模式
.tab-control{
    width:100%!important;
    height:40px!important;
}
.tab-control ul, .tab-control li {
    margin:0!important;
    padding:0!important;
    list-style:none!important;
}
.tab-control ul{
    height:100%;
    width:100%;
    display: inline-block;
}
.tab-control li{
    width:100px;
    height:100%;
    float:left;
    border:none;
    box-sizing:border-box;
    background-color:white;
    cursor: pointer;
    margin-right: 5px !important;
}
.tab-control li:hover{
    border-bottom: 1px solid dodgerblue;
}
.tab-control a{
    display:inline-block;
    width:100%;
    height:100%;
    line-height:100%;
    text-align:center;
    text-decoration: none;
}
.tab-control a::after{
    content:"";
    display:inline-block;
    height:100%;
    vertical-align:middle;
}
.tab-control .selected {
    border-bottom: 1px solid dodgerblue;
}
.docDetail {
    margin-left: 10px;
    display: inline-block;
    vertical-align: top;
    line-height: 40px;
}
.docDetail .comment {
    color: #999;
}
#docContainer .svg_item img {
    width: 100%!important;
}
.viewer-canvas img {
    background-color: #fff;
}
@media (max-width: 767px) {
  .viewer-canvas img {
    /*margin-left: 2px !important;*/
    /*margin-right: 2px !important;*/
    /*width: calc(100% - 4px) !important;  */
  }
}
.viewer-player img {
    background-color: #fff;
}
.viewer-title {
    color: #fff !important;;
}
.viewer-toolbar > ul > li {
    /*transform: scale(1);*/
    height: 30px;
    margin-bottom: -3px;
    margin-top: -3px;
    width: 30px;
}
.viewer-toolbar > ul > li::before {
    margin: 5px;
}
   
        
            
               文档预览
            
            
                文本预览
            
        

      
   
     总页数:约6页   总字数:约2576字
   
        
[img][/img]
[img][/img]
   


  
   以下哪个选项是变量?
  


  
   20
  


  
   9.99
  


  
   name = "zhangsan"
  


  
   PI = 3.1415926
  


  
   答案是:
  
  
   name = "zhangsan"
  


  
   在
  
  
   Python
  
  
   中,下列命名错误的是哪个?
  


  
   _123
  


  
   You-123
  


  
   your_name
  


  
   123abc
  


  
   答案是:
  
  
   You-123||123abc
  


  
   以下代码片段最终显示的值为:
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
   x = 20
  


  
   x = 100
  


  
   x = 1000
  


  
   print(x)
  


  
   20
  


  
   100
  


  
   1000
  


  
   答案是:
  
  
   1000
  


  
   以下哪个选项不是
  
  
   Python
  
  
   的数据类型?
  


  
   int
  


  
   float
  


  
   double
  


  
   bool
  


  
   答案是:
  
  
   double
  


  
   代码
  
  
   5 > 3 and 3 > 1
  
  
   的结构是:
  


  
   5
  


  
   3
  


  
   False
  


  
   True
  


  
   答案是:
  
  
   True
  


  
   以下代码片段最终显示值为:
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
   x = 20
  


  
   y = 6
  


  
   print( x // y , x % y )
  


  
   5    6
  


  
   3    2
  


  
   2    3
  


  
   答案是:
  
  
   3    2
  



  
   以下代码哪一个表示 判断变量
  
  
   a
  
  
   是否等于“
  
  
   KKB”
  


  
   if a == "kkb"
  


  
   if a = "kkb"
  


  
   if a == "KKB":
  


  
   if a =? "KKB"
  


  
   答案是:
  
  
   if a == "KKB":
  


  
   下面的程序输出结果是:
  


  
   x = 10
  


  
   y = 20
  


  
   
    if not
   
  

  
   x


  
   print( x * y )
  


  
   
    else
   
  

  
   :
  


  
   print( x + y )
  


  
   20
  


  
   10
  


  
   200
  


  
   30
  


  
   答案是:
  
  
   200
  


  
   以下代码片段运行结果是:
  


  
   a=10
  


  
   b="xaou"
  


  
   if a == 826:
  


  
   print("a is 826")
  


  
   if b == "xaou"
  


  
   print("and b is xaou")
  


  
   and b is xaou
  


  
   a is 826 and b is xaou
  


  
   a is 826
  


  
   无返回内容
  


  
   答案是:无返回内容
  


  
   以下选项对
  
  
   input()
  
  
   解释错误的是:
  


  
   input()
  
  
   是指输入内容
  


  
   input()
  
  
   是指输出内容
  


  
   需要在
  
  
   input()
  
  
   输入框中输入内容,按
  
  
   
  
  
   键完成程序运行
  


  
   执行
  
  
   input()
  
  
   语句输入内容可以是整型和字符串类型
  


  
   答案是:
  
  
   input()
  
  
   是指输出内容
  


  
   观察以下程序,选择正确的一项
  


  
   a = 2
  


  
   b = int(input("
  
  
   请输入整数:
  
  
   "))
  


  
   print("
  
  
   计算机相乘结果:
  
  
   " ,  a + b)
  


  
   输入
  
  
   2
  
  
   ,结果为
  
  
   4
  


  
   输入
  
  
   4
  
  
   ,结果为
  
  
   24
  


总页数:6





上一篇:国家开放大学2023年春《计算机导论#-西安》补修任务参考答案
下一篇:国家开放大学2023年春《Android智能手机编程#-西安》补修课考核参考答案
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩课程推荐
|网站地图|网站地图