在kotlin 中 使用String 表示字符串类型,如下二类字符串

一 普通字符串

var s1 = "hello world"

二 保留原始格式的字符串

var s2 = """ 

         hello   

  world

"""

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
  • 2021-06-02
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2021-04-06
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案