Lua String Key Operation

数字字符串互转:

[plain]  view plain  copy
  1. local a = tostring(11)  
  2. local b = tonumber("11")  
  3. local c = "" .. 11  

  1. print(a==c) --true  

多行:

[plain]  view plain  copy
  1. local a= [[  
  2. hello  
  3. world  
  4. lua  
  5. is  
  6. good]]  

猜你喜欢

转载自blog.csdn.net/qq_14914623/article/details/80716777