In Python, you can have if-else statements on one line. To write an if-else statement on one line, follow the conditional expression syntax:.
確定! 回上一頁