7
파이썬 문자열에서 어떻게 백분율 (%)을 이스케이프 처리 할 수 있습니까?
다음 코드가 있습니다 test = "have it break." selectiveEscape = "Print percent % in sentence and not %s" % test print(selectiveEscape) 출력을 얻고 싶습니다. Print percent % in sentence and not have it break. 실제로 일어나는 일 : selectiveEscape = "Use percent % in sentence and not %s" % test …
364
python
escaping
python-2.7