没有合适的资源?快使用搜索试试~ 我知道了~
ython期末复习题必考.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 171 浏览量
2022-11-07
15:05:08
上传
评论
收藏 86KB DOCX 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/86925423/0001-2f3a4a60ef883d99ca78e81aae773221_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
6页
...
资源推荐
资源详情
资源评论
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/release/download_crawler_static/86925423/bg1.jpg)
2018-2019学年第一学期 python练习
专业、班级:__________
学号:____________姓名:____________
Python语言基础
一、单选题
1.在 Python中,合法的标识符是 【
】。
A. _
2. Python表达式中,可以使用【
A.圆括号() B.方括号[]
3.以下 Python注释代码,不正确的是【
B. 3C
C. it's
】控制运算的优先顺序。
C.花括号{} D.尖括号<>
】。
D. str
A. #Python注释代码
B. #Python注释代码 1 #Python注释代码 2
D. //Python 注释代码
C. """Python文档注释"""
4.为了给整型变量 x、y、z 赋初值 10,下面正确的 Python赋值语句是【
A. xyz=10 B. x=10 y=10 z=10 C. x=y=z=10 D. x=10,y=10,z=10
5.为了给整型变量 x、y、z 赋初值 5,下面正确的 Python赋值语句是【
】。
】。
A. x=5;y=5;z=5
C. x,y,z= 5
B. xyz=5
D. x=5,y=5,z=5
6.已知 x=2;y=3,复合赋值语旬 x*=y+5执行后,x 变量中的值是【
A. 11 B.16 C.13 D.26
7.整型变量 x 中存放了一个两位数,要将这个两位数的个位数字和十位数字交换位置,例如,
13变成 31,正确的 Python表达式是【 】。
】。
A. (x%10)*10+x//10
B. (x%10)//10+x//10
D. (x%10)*10+x%10
C. (x/10)%10+x//10
二、填空题
1. Python中如果语句太长,可以使用
作为续行符。
2. Python中在一行书写两条语句时,语句之间可以使用
使用符号 标示注释。
作为分隔符。 3. Python
3. Python 表达式 4.5/2的值为
4. Python表达式 4.5//2的值为
5. Python 表达式 4.5%2的值为
。
。
。
6. Python 表达式 12/4-2+5*8/4%5/2的值为
。
7. Python 语句 a,b=3,4; a,b= b,a; print(a,b)的结果是
8. 已知 x=5;y=6,复合赋值语旬 x*=y+10执行后,x 变量中的值是
9. 写出下面程序的执行结果__________________。
。
。
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/dfba069df9d743e89798b70d3e80af24_xxpr_ybgg.jpg!1)
xxpr_ybgg
- 粉丝: 6560
- 资源: 3万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)