- 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.
推薦閱讀
- Vue.js設(shè)計與實現(xiàn)
- Learning RxJava
- Hands-On RESTful Web Services with Go
- C語言程序設(shè)計
- Java設(shè)計模式及實踐
- Microsoft Dynamics GP 2013 Reporting, Second Edition
- Swift語言實戰(zhàn)精講
- Machine Learning in Java
- 小程序,巧應(yīng)用:微信小程序開發(fā)實戰(zhàn)(第2版)
- Spring Boot+MVC實戰(zhàn)指南
- Machine Learning for Developers
- Mastering Bootstrap 4
- C語言編程魔法書:基于C11標(biāo)準(zhǔn)
- Python深度學(xué)習(xí)與項目實戰(zhàn)
- ServiceDesk Plus 8.x Essentials