Solucionat: obteniu el signe d'interrogació d'una paraula %2B python

Darrera actualització: 09/11/2023

El problema és que el signe d'interrogació no és un caràcter vàlid a 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".

determinar si una paraula conté signe d'interrogació

A Python, el signe d'interrogació (?) s'utilitza per indicar que una paraula és una pregunta.

Què és el signe d'interrogació

El signe d'interrogació (?) és un caràcter utilitzat en molts llenguatges de programació per indicar una pregunta.

Articles Relacionats: