我想知道如何從我的「公式」類訪問「eq」功能?我所嘗試過的不起作用並返回「未綁定的方法」。謝謝。從Python中的類訪問函數?
class formula():
def eq():
print "What is your Velocity: "
v = float(raw_input())
print "What is your Intial Velocity: "
u = float(raw_input())
print "What is the time: "
t = float(raw_input())
aa = v-u
answer = aa/t
print "Your Acceleration is: ", answer
a =formula.eq()
print a
[在Python靜態方法](http://stackoverflow.com/questions/735975/static-methods-in- python) – gongzhitaao
爲什麼'公式'中的'eq'完全在?看起來它屬於模塊級別。 – user2357112