python
文章平均质量分 82
Super_CCo
非先进生产力AAI小学生
展开
-
Python错误集合
python入门错误集合ValueError: math domain error此处使用求根公式,发生 ValueError: math domain error 错误 错误名称:数学域错误 原因:某些操作不符合数学定义,如对负数取对数,对负数开平方。零为被除数root1=2* C/0,故报错 浮点数乘法精确度原因是实数的无限精度和内存的有限精度 使用round(a*b)原创 2017-08-18 11:26:23 · 363 阅读 · 0 评论 -
Tensorflow基础学习笔记
个人理解:机器学习通过已知数据,经过机器,得到需求的未知数据的过程原创 2017-08-18 15:19:59 · 291 阅读 · 0 评论 -
Python Review
1.Write a function called digit_sum that takes a positive integer n as input and returns the sum of all that number’s digits. For example: digit_sum(1234) should return 10 which is 1 + 2 + 3 + 4. (Assu原创 2017-11-24 19:12:56 · 442 阅读 · 0 评论