Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1326123
  • 博文数量: 268
  • 博客积分: 10698
  • 博客等级: 上将
  • 技术积分: 2867
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-14 22:21
文章分类

全部博文(268)

文章存档

2012年(19)

2011年(13)

2010年(29)

2009年(26)

2008年(99)

2007年(82)

我的朋友

分类:

2009-07-17 12:56:34

# python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1/7.0
0.14285714285714285
>>> 2/7.0
0.2857142857142857
>>> 3/7.0
0.42857142857142855
>>> 4/7.0
0.5714285714285714
>>> 5/7.0
0.7142857142857143
>>> 6/7.0
0.8571428571428571
>>> 8/7.0
1.1428571428571428
>>> 9/7.0
1.2857142857142858
>>> 10/7.0
1.4285714285714286
>>> 11/7.0
1.5714285714285714
>>> 12/7.0
1.7142857142857142
>>> 13/7.0
1.8571428571428572
>>> 15/7.0
2.1428571428571428
>>> 16/7.0
2.2857142857142856

>>> 1/9.0
0.1111111111111111
>>> 2/9.0
0.22222222222222221
>>> 3/9.0
0.33333333333333331
>>> 4/9.0
0.44444444444444442
>>> 5/9.0
0.55555555555555558
>>> 6/9.0
0.66666666666666663
>>> 7/9.0
0.77777777777777779
>>> 8/9.0
0.88888888888888884
>>> 10/9.0
1.1111111111111112

>>> 1/11.0
0.090909090909090912
>>> 2/11.0
0.18181818181818182
>>> 3/11.0
0.27272727272727271
>>> 4/11.0
0.36363636363636365
>>> 5/11.0
0.45454545454545453
>>> 6/11.0
0.54545454545454541
>>> 7/11.0
0.63636363636363635
>>> 8/11.0
0.72727272727272729
>>> 9/11.0
0.81818181818181823
>>> 10/11.0
0.90909090909090906


>>> 1/13.0
0.076923076923076927
>>> 2/13.0
0.15384615384615385
>>> 3/13.0
0.23076923076923078
>>> 4/13.0
0.30769230769230771
>>> 5/13.0
0.38461538461538464
>>> 6/13.0
0.46153846153846156
>>> 7/13.0
0.53846153846153844
>>> 8/13.0
0.61538461538461542
>>> 9/13.0
0.69230769230769229
>>> 10/13.0
0.76923076923076927
>>> 11/13.0
0.84615384615384615
>>> 12/13.0
0.92307692307692313

阅读(1144) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~