作者duckf (/home/duckf)
看板ck51st310
标题Re: 急寻高手
时间Tue Jun 22 00:04:22 2004
※ 引述《gamemaster (.....)》之铭言:
: 有没有人会写python的程式
: 写简单的微积分运算…
: 酬劳1000元
------------------------------
开新档案,并把中间那段copy进test.py并存档
------------------------------
$vi test.py
------------------------------
#!/usr/local/bin/python
y=input("please enter a number: ")
output='X^'+`y`+' = '+`y`+'* X^'+`y-1`
print output
-------------------------------
执行下面的指令
--------------------------------
$python test.py
=======
这样就完成简单的对x微分的输出
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.28.87