これが私の文字列です:
marker = "AFK"
replacement = "away from keyboard"
line = "I will now go to sleep and be AFK until lunch time tomorrow."
line
変数の「キーボードから離れた」の「AFK」を置き換えたい。
Python 2.7でこれを行う最も簡単な方法は何ですか?
ありがとう。
これが私の文字列です:
marker = "AFK"
replacement = "away from keyboard"
line = "I will now go to sleep and be AFK until lunch time tomorrow."
line
変数の「キーボードから離れた」の「AFK」を置き換えたい。
Python 2.7でこれを行う最も簡単な方法は何ですか?
ありがとう。