プログラミングをしていると、バラバラの文字データ(リスト)をひとつに繋げたい場面が頻繁に訪れます。 「単語のリストをスペースで繋いで文章にする」 「データのリストをカンマで区切ってCSV形式にする」 Pythonを始めたばかりの頃は、空の文字列を ...
I love those unexpected "Huh, I didn't know that" moments, especially when they pop up in random conversations on Mastodon. Recently, I had one about Python—a language I've been coding in for 5 years, ...
今日から第3週。「文字列と入出力の高速化」編のスタートだよ! これまでは「データの形」を整えてきたけど、今週は「データのやり取り」を爆速にする方法を学んでいこう。 たくさんの単語を繋げて一つの文章にしたいとき、どうしてる? 例えば、 for s ...
Join actions should be provided as a dictionary. Each key is an action name, and each value is a list of the custom inputs. Use None for no custom input. For example: ...