テックアイエスガイド エディター
無料プログラミング体験会の予約
実行
1
2
3
4
5
6
7
import re
#最初の空白文字で文字列を分割する:
txt = "The rain in Spain"
x = re.split("\s", txt, 1)
print(x)