门户
Portal
学术
快讯
视频
论坛
BBS
日志
Blog
关于
扫码查看手机版
门户
Portal
学术
快讯
视频
论坛
BBS
日志
Blog
关于
用户名
Email
自动登录
找回密码
密码
登录
立即注册
只需一步,快速开始
登录
注册
搜索
搜索
搜索
热搜
活动
交友
discuz
本版
文章
帖子
群组
用户
本版
文章
帖子
群组
用户
原创
精选
转载
政策要闻
高校讯息
企业新闻
市场资讯
学术动态
道具
勋章
任务
留言板
门户
排行榜
设置
我的收藏
退出
AGRO SCIENCE
»
论坛
›
程序开发
›
代码分享
›
Python hello world
返回列表
Python hello world
[复制链接]
作者:
hsj003
|
时间:
2022-5-30 03:50:15
|
阅读:2831
|
显示全部楼层
# Python 3: Fibonacci series up to n
>>> def fib(n):
>>> a, b = 0, 1
>>> while a < n:
>>> print(a, end=' ')
>>> a, b = b, a+b
>>> print()
>>> fib(1000)
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
回复
使用道具
举报
返回列表
发表新帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
hsj003
关注Ta
主题 13
帖子 12
积分 196
此人很懒,什么也没留下。
•
Uses of Tractors in Agriculture, Construction and Industries
•
Python Data Structures and Algorithms
•
Air Pollution and Your Health
•
Precision Editing of Large Animal Genomes
•
New Zealanders outnumbered by cows
•
CRV Holstein EU
•
拖拉机自动驾驶
•
Pig gene discovery could help combat animal and human disease
阅读作者更多精彩帖子
热门问答
更多>
2
Influence of bull age, ejaculate number, and season of colle
1945人围观, 发布于2022-03-11
1
Review: Historical and futuristic developments in bovine sem
5355人围观, 发布于2022-03-12
1
Big Clara 123: fifth cow in the Netherlands to smash the bar
1441人围观, 发布于2022-05-30
1
GeneDMRs: An R Package for Gene-Based Differentially Methyla
905人围观, 发布于2022-08-04