《人工智能实践教程 从Python入门到机器学习》阅读分享
[复制链接]
人工智能实践教程
从Python入门到机器学习
内容包括三部分
1.Python编程
2.机器学习
3.神经网络
关联资源下载链接:
https://www.hxedu.com.cn/
Python 下载和 PyCharm IDE 安装
https://www.python.org/downloads/
https://www.jetbrains.com.cn/pycharm/download/
Python安装测试
管理员身份运行 Windows PowerShell,输入
python
获得回复当前Python版本信息等。
PyCharm 安装并激活,新建工程,新建 .py 文件,测试代码
print("Hellow world!")
人机交互
通过 input 等函数实现人机交互
# input apple price
price_str = input("The price of each unit apple is ")
# weight of apple
weight_str = input("Give the weight of apple please ")
# calculate total price
# transform to float
price = float(price_str)
# transform weight to float
weight = float(weight_str)
# calculate price
money = price * weight
print(money)
|