0
flucommands = """
Library:
CEL:
&replace EXPRESSIONS:
MassFlowRate = """
flucommands = flucommands + 0.43 + "[kg s^-1]"
flucommands = flucommands + """
Temp = """
flucommands = flucommands + 843.15 + "[K]"
counttt = 1
while (counttt<=3):
flucommands = flucommands + "PorositySub" + countt
flucommands = flucommands + " = " + 0.75 + "\n"
counttt = counttt + 1
我得到錯誤縮進錯誤
'flucommands = flucommands + 「PorositySub」 + countt' 錯誤是 '期望 一個縮進塊'
任何幫助理解。謝謝!!!
你知道了Python的壓痕嚴格的規定?你應該[閱讀它。](https://docs.python.org/2/reference/lexical_analysis.html#indentation) – SuperBiasedMan
除了縮進@有許多錯誤,如你正在向浮動添加字符串,字符串轉換爲int – Ajay