7
Como posso escapar seletivamente por cento (%) em seqüências de caracteres Python?
eu tenho o seguinte código test = "have it break." selectiveEscape = "Print percent % in sentence and not %s" % test print(selectiveEscape) Gostaria de obter a saída: Print percent % in sentence and not have it break. O que realmente acontece: selectiveEscape = "Use percent % in sentence and …
364
python
escaping
python-2.7