簡體   English   中英

運行這部分代碼時出現錯誤。 嘗試了一些現有的解決方案,但都沒有幫助

[英]I am getting error while running this part of the code. tried some of the existing solutions, none of them helped

for face_location in face_locations:
top , right, bottom , left = face_location
print("A face is located at the pixel locations Top: {} , Right:{} , Left: {} , Bottom: {}.")

   **** I always get this error:****

 File "<ipython-input-55-23558b69803e>", line 1
for face_location in face_locations:

^SyntaxError: 解析時出現意外 EOF

可能是您忘記在 for 循環之后使用制表符嗎? 代替

for face_location in face_locations:
top , right, bottom , left = face_location

for face_location in face_locations:
    top , right, bottom , left = face_location

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM