我不知道如何用這段代碼修復python上的標識問題。 因爲這一切都在這一刻拋出。當我運行它。在python上縮進時遇到問題
import math
p = int(raw_input("Please enter deposit amount: \n"))
i = int(raw_input("Please input interest rate: \n"))
t = int(raw_input("Please insert number of years of the invesment: \n"))
interest = raw_input("Do you want a simple or compound interest ? \n")
A =p(1+r*t)
B =p (1+r)^t
if interest == "simple":
print int(float(A))
elif interest == "compound":
print int(float(B))
插入兩/四/ 16位兩個'print'語句之前。 –