loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • lua string length
  • 離開本站
你即將離開本站

並前往https://zhuanlan.zhihu.com/p/374527152

Lua中带有中文的字符串长度为什么和认为的不一样 - 知乎专栏

local str = "abc" local len = #str print(len) -- 3 str = "你们好" ... 总之,在lua中,通过string.len获取的字符串的字节长度,采用utf-8存储的。

確定! 回上一頁

查詢 「lua string length」的人也找了:

  1. Lua string length
  2. Lua string:split
  3. Lua string __index
  4. Lua string to int
  5. Lua substring
  6. Lua string compare
  7. Lua string replace
  8. Lua escape character

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿