Skip to content

Working with strings · ⁨处理字符串⁩

English

Letters have positions

  • A string is a row of characters.
  • Each character has a position, called an index.
  • Indexes start at 0. Use s[-1] for the last character.
中文

字母有位置

  • 字符串是一串字符(character)。
  • 每个字符都有一个位置,叫作索引(index)。
  • 索引从 0 开始。用 s[-1] 表示最后一个字符。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩