if語句實(shí)例程序運(yùn)行失敗
score?=?59 if?score?<?60: ????print('抱歉,考試不及格')
我按案例把這個(gè)if語句程序一樣敲進(jìn)index.py,為什么會顯示運(yùn)行失???也不存在字符錯(cuò)誤,正常應(yīng)該顯示“抱歉,考試不及格"這幾個(gè)字????
score?=?59 if?score?<?60: ????print('抱歉,考試不及格')
我按案例把這個(gè)if語句程序一樣敲進(jìn)index.py,為什么會顯示運(yùn)行失???也不存在字符錯(cuò)誤,正常應(yīng)該顯示“抱歉,考試不及格"這幾個(gè)字????
2023-09-10
舉報(bào)
2023-10-08
# Enter a code
# coding=utf-8
score = 59
if score < 60:
? ? print('抱歉,考試不及格')
2023-09-11
輸出內(nèi)容里面如果有漢字 要在首行加上
# coding: utf-8
喲
求采納??