已解決:從單詞 %2B python 獲取問號

最後更新: 09/11/2023

問題是問號在 Python 中不是有效字符。

In Python, the % operator can be used to get the remainder of a division operation. For example, if you divide 7 by 3, the remainder is 1. So 7 % 3 is 1.

If you have a string that contains a question mark (?), you can use the % operator to get the question mark out of the string. For example, "abc?def" % 2 is "def".

判斷一個單字是否包含問號

在 Python 中,問號 (?) 用來表示某個字是一個問題。

問號是什麼

問號 (?) 是許多程式語言中用來表示問題的字元。

相關文章: