解析时出现意外的EOF错误

时间:2016-10-17 17:18:27

标签: python eof

我是一名从事python任务的新手程序员,我在解析时遇到意外的EOF错误。我在IDLE中进行编辑,因此检查模块会在“#end program”标记旁边显示一个红色错误栏时出现“解析时出现意外的EOF错误”。  我想知道是否有人可以帮助我查明问题:

carpet_Cost = 1.20
addmat_Cost = .33
labor_Rate = 18.00
markup = 2.25

print ( "Please enter the total dimensions of the room: " )
width = int ( input ( "Width: ") )
length = int ( input ( "Length: ") )
print ( "Please enter the number of cutouts: " )
cutouts = int ( input ( "Cutouts: ") )
total_Area = width * length
labor_Hours = (( total_Area / 10 * 15 / 60 + 4) )
labor_Cost = labor_Hours * labor_Rate 
matCost = total_Area * (carpet_Cost + addmat_Cost) * markup
for count in loop ( 1, cutouts ):
print ( "Enter the dimensions of the cutout #count: " )
print ( "Width: " )
width = int ( input ( "Width: " ) )
print ( "Length: " )
length = int ( input ( "Length: " ) )
cut_Area = width * length
if cut_Area >= 90:
    mat_Cost = mat_Cost - cut_Area * ( carpet_Cost + addmat_Cost ) * markup
elif cut_Area >= 10:
    mat_Cost = mat_Cost - ( cut_Area * carpet_Cost ) * ( markup - 1 )
    mat_Cost = mat_Cost - ( cut_Area * addmat_Cost ) * markup
else:
    mat_Cost = mat_Cost - ( cut_Area * carpet_Cost ) * ( markup - 1.5 )
    mat_Cost = mat_Cost - ( cut_Area * addmat_Cost ) * markup
    total_Area = total_Area - cut_Area
print ( "Cost estimate: " )
print ( "Carpeted area: " , total_Area )
print ( "Total labor hours: " , labor_Hours )
print ( "Total materials cost: " , mat_Cost )
print ( "Total cost: " , ( mat_Cost + labor_Cost )
#end of program

0 个答案:

没有答案