当前位置: 移动技术网 > IT编程>脚本编程>Python > 百度架构师深度学习课程 00 预习

百度架构师深度学习课程 00 预习

2020年08月10日  | 移动技术网IT编程  | 我要评论
一、作业一:**飞代码运行成功截图**####请在下面cell中上传飞桨安装成功的截图####安装教程可参考:https://www.paddlepaddle.org.cn/documentation/docs/zh/install/index_cn.htm1.查看python版本python --version2.检查 Python 对应的 pip 的版本,确认是 9.0.1+python -m ensurepippython -m pip --version3.执行命令安装p

一、作业一:

**飞代码运行成功截图**
####请在下面cell中上传飞桨安装成功的截图####

安装教程可参考:https://www.paddlepad
dle.org.cn/documentation/docs/zh/install/index_cn.htm

1.查看python版本

python --version

2.检查 Python 对应的 pip 的版本,确认是 9.0.1+

python -m ensurepip
python -m pip --version

3.执行命令安装

python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
#或
python -m pip install paddlepaddle -i https://pypi.tuna.tsinghua.edu.cn/simple

4.验证
再ipython中输入import paddle.fluid ,再输入 paddle.fluid.install_check.run_check()
如果出现 Your Paddle Fluid is installed successfully!,说明您已成功安装。
5.上传截图
启动AI Studio,新建markdown编辑器上传截图即可
在这里插入图片描述
在这里插入图片描述

二、作业二

9*9乘法表
####请在下面的cell中编写代码,按照下图所示格式,输出9*9乘法表####

在这里插入图片描述
方法一:通过循环嵌套实现

row = 1
while row <= 9:
    col = 1
    while col <=row:
        print("%d * %d = %d" % (col,row,col*row), end="\t")
        col += 1
    print("")
    row += 1

“”“
1 * 1 = 1	
1 * 2 = 2	2 * 2 = 4	
1 * 3 = 3	2 * 3 = 6	3 * 3 = 9	
1 * 4 = 4	2 * 4 = 8	3 * 4 = 12	4 * 4 = 16	
1 * 5 = 5	2 * 5 = 10	3 * 5 = 15	4 * 5 = 20	5 * 5 = 25	
1 * 6 = 6	2 * 6 = 12	3 * 6 = 18	4 * 6 = 24	5 * 6 = 30	6 * 6 = 36	
1 * 7 = 7	2 * 7 = 14	3 * 7 = 21	4 * 7 = 28	5 * 7 = 35	6 * 7 = 42	7 * 7 = 49	
1 * 8 = 8	2 * 8 = 16	3 * 8 = 24	4 * 8 = 32	5 * 8 = 40	6 * 8 = 48	7 * 8 = 56	8 * 8 = 64	
1 * 9 = 9	2 * 9 = 18	3 * 9 = 27	4 * 9 = 36	5 * 9 = 45	6 * 9 = 54	7 * 9 = 63	8 * 9 = 72	9 * 9 = 81	
”“”

本文地址:https://blog.csdn.net/weixin_46755974/article/details/107888010

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网