跳至內容

GCSE 計算機科學/字串處理

來自華夏公益教科書,開放的書籍,面向開放的世界


字串長度

[編輯 | 編輯原始碼]

此函式用於查詢您傳遞給它的任何字串的長度,包括空格在內的所有字元。

示例

程式碼

someText = "Gary had a little lamb"
Print(Length(someText))

生成

22

字串中的位置

[編輯 | 編輯原始碼]

子字串

[編輯 | 編輯原始碼]

字串轉換

[編輯 | 編輯原始碼]
華夏公益教科書