私は次のコードを持っています
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
TypeError: %d format: a number is required, not str