跳轉到內容

Rexx 程式設計/Rexx 入門/引號

來自華夏公益教科書,自由的教學讀本

在 rexx 中,字串可以使用單引號或雙引號來引用。

文字字串中的引號

[編輯 | 編輯原始碼]

為了在字串中使用字面單引號字元,可以使用雙引號將字串括起來

say "Here's how we use an apostrophe within a string"

為了在字串中使用字面雙引號字元,可以使用單引號將字串括起來

say 'Here we are using "doublequotes" within a string'

連續的引號

[編輯 | 編輯原始碼]

可以使用連續的引號來表示字串中的單個引號

say 'Heres back to back'  /* Note the back to back quotation mark for an apostrophe */
華夏公益教科書