- 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程序設計與開發
- Python數據分析入門與實戰
- 零基礎學C++程序設計
- Mastering ServiceStack
- Python 深度學習
- Web Application Development with R Using Shiny(Second Edition)
- Java游戲服務器架構實戰
- Interactive Applications Using Matplotlib
- Keras深度學習實戰
- RubyMotion iOS Develoment Essentials
- Zabbix Performance Tuning
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- Java Hibernate Cookbook