Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 291 Bytes

diff-between-and.md

File metadata and controls

22 lines (16 loc) · 291 Bytes

Diff between '' and""

字符串中引号的使用

  • 单引号
  • 双引号
  • 引号中的大括号(运算式)
p1="ha\nrry"
p2='po\nrry'
puts p1
puts p2

love ="#{4000+300+90+6}"
puts love
love = '#{4000+300+90+6}'
puts love