Unknown python terms reported in error

Through my programming,I find a funny phenomenon:There are some words that are so special that the translation software can't translate it.It is a term unique to programming.So I decide to record this phenomenon.

error:Unindent not expected

​
for kp in keypoints:
            x=kp.pt[0]
            y=kp.pt[1]
            size=kp.size
          EWFC  z=484
            D=498
          lx=
          ly=
        #purpose to get a error to replace with this param
            response=kp.response
            circle_data=circle(x,y,size,z,D,lx,ly)
            circle_x.append(circle_data.X_location)
            circle_y.append(circle_data.Y_location)
            circle_size.append(circle_data.radius)
            circle_coordinate.append(circle_data.X_location,circle_data.Y_location)
       
       
        circle_z = circle_data.z #carmer between receive's distance
        circle_D = circle_data.D           #wavelight of incident light
        
        circle_lx = circle_data.lx
        circle_ly = circle_data.ly

​

you can see the word 'unindent', it means ’Null line‘.The front and rear's'unindent'  is inconfimity and lead to  this error.  

Secondly,the error:'Expected indented block',this reason is that before the main's code is incomplete.

def main():
     circle.get_original(image_path)
     #left_top_p,left_down_p,right_top_p,right_down_p,h1=circle.find_rect(image_path)
     #circle.jiaozheng(left_top_p,left_down_p,right_top_p,right_down_p,image_path,h1)
     circle_z,circle_D,circle_coordinate=circle.get_coodrinate(image_path)
     circle_pointsdistance=[]
     for i in circle_coordinate:
       circle_pointsdistance.append(circle_coordinate[i])
     circle_truedistance=sum(circle_pointsdistance) / len(circle_pointsdistance)
     circle.calculate_distance(circle_z,circle_D,circle_truedistance)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值