- Comprehensive Ruby Programming
- Jordan Hudgens
- 84字
- 2021-07-02 21:13:25
Using strings in Ruby
A string is a data type in Ruby and contains a set of characters, typically normal English text (or whatever natural language you're building your program for), that you would write. A key point for the syntax of strings is that they have to be enclosed in single or double quotes if you want to use them in a program. The program will throw an error if they are not wrapped inside quotation marks.
Let's walk through three scenarios.
推薦閱讀
- Java程序設計(慕課版)
- Vue.js設計與實現
- Java異步編程實戰
- Java面向對象思想與程序設計
- 區塊鏈架構與實現:Cosmos詳解
- 跟小海龜學Python
- Designing Hyper-V Solutions
- AngularJS深度剖析與最佳實踐
- Functional Programming in JavaScript
- 精通Scrapy網絡爬蟲
- concrete5 Cookbook
- PhoneGap:Beginner's Guide(Third Edition)
- ElasticSearch Cookbook(Second Edition)
- C語言程序設計簡明教程:Qt實戰
- Mastering Apache Camel