返回 Skill 列表
extension
分类: 开发与工程无需 API Key

fibonacci-number

计算斐波那契数列中的第n项。当要求计算斐波那契数时使用此方法。

person作者: jakexiaohubgithub

Fibonacci Calculation with Python

This skill helps you to calculate Fibonacci numbers using a very efficient algorithm.

When to use this skill

Use this skill when you need to calculate Fibonacci numbers.

To access the skill

Run python fib.py and pass it N on the command line.

python <full_path_to_skill>/fib.py <N>

Example

This will output the 100th Fibonacci number.

python C:/Users/Fred/.agentc/skills/fibonacci-number/fib.py 100