2015-05-08 71 views
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' 错误是 '期望 一个缩进块'

任何帮助理解。谢谢!!!

+0

你知道了Python的压痕严格的规定?你应该[阅读它。](https://docs.python.org/2/reference/lexical_analysis.html#indentation) – SuperBiasedMan

+0

除了缩进@有许多错误,如你正在向浮动添加字符串,字符串转换为int – Ajay

回答