我的代码收到了syntaxERROR无效的语法

时间:2020-09-17 23:33:24

标签: python syntax

这是我的python程序,每当我尝试运行它时,我都会在第3行的weight_kg处收到该错误,我今天才开始学习这种语言,所以我不确定是什么问题

//------------------------------------------------------------------------------
void DlgA::OnMouseMove(UINT nFlags, CPoint point)
//------------------------------------------------------------------------------
{
    HWND hwnd = ::GetActiveWindow();
    if (pDlgB != NULL)
    {
        if (hwnd == pDlgB->GetSafeHwnd())
        {
            // Make the focus switch automatically
            SetFocus();
        }
    }
}

1 个答案:

答案 0 :(得分:0)

height_m=float(input("enter the height:")

您需要在此行的末尾添加一个额外的括号

相关问题