====== 11 Python 文字抜き出し ====== ===== n文字目を抜き出し ===== >>> a='ABCDEFG' >>> print(a[1]) B ===== n文字目以降を抜き出し ===== >>> a='ABCDEFG' >>> print(a[3:]) DEFG {{tag>Python}}
>>> a='ABCDEFG' >>> print(a[1]) B
>>> a='ABCDEFG' >>> print(a[3:]) DEFG