テックアイエスガイド エディター
無料プログラミング体験会の予約
実行
1
2
3
4
5
6
import re
txt = "The rain in Spain"
x = re.search("\s", txt)
print("The first white-space character is located
in position:", x.start())