<think python>一些练习的答案
来源:互联网 发布:韦志中心理学网络学校 编辑:程序博客网 时间:2024/05/05 22:02
练习7-3
import mathdef square_root(a): x=1 while True: #print x y=(x+a/x)/2.0 if y==x or abs(y-x)<0.0000001: break x=y return xdef test_square_root(): for i in range(1,10): print i,' ', print '%-15s '% math.sqrt(i), print '%-15s '% square_root(i), print abs(math.sqrt(i)-square_root(i))test_square_root()
0 0
- <think python>一些练习的答案
- Think Python 练习答案
- think python turtleworld练习
- python的一些练习
- python的一些练习地址
- python核心编练习答案
- 一些Python的面试题(无答案)
- 《python核心编程》第二章练习答案
- Python核心编程第十章客后练习答案
- tp think php的一些小功能
- lab1的实验练习答案
- 跟着别人做的一些数据库练习,答案都是自己写的,
- Think Python:Chapter 3: Functions 的笔记
- 一些问题的候选答案
- Java的Exceptions的练习答案
- MIT:Python Tutorial 和《Think Python》的目录
- SAS练习A卷的答案
- oracle练习及我的答案
- 自定义安装linux/Ubuntu版本操作系统/自定义磁盘分区
- 随机数生成_srand/random
- org.hibernate.exception.GenericJDBCException
- 用php实现分解质因数
- android 事件总线 -- Otto(三) ThreadEnforcer
- <think python>一些练习的答案
- unix/linux编程实践教程---sscanf函数的用法
- 数字可以为正数或负数(可以含有小数点) java
- 传感器
- Guava Cache 实现详解
- generate patches by git
- 整理的页面切换效果,项目源码。请大家收藏!
- nginx设置动静分离
- 表单提交验证