7
Jak mogę selektywnie uciec procent (%) w ciągach Python?
Mam następujący kod test = "have it break." selectiveEscape = "Print percent % in sentence and not %s" % test print(selectiveEscape) Chciałbym uzyskać wynik: Print percent % in sentence and not have it break. Co się właściwie dzieje: selectiveEscape = "Use percent % in sentence and not %s" % test …
364
python
escaping
python-2.7