
Lua
Endless丶Go
游戏服务器研发
展开
-
lua string.format
------ Returns a formatted version of its variable number of arguments following--- the description given in its first argument (which must be a string). The--- format string follows the same rules as the ISO C function `sprintf`. The--- only differen.原创 2022-03-17 10:53:17 · 609 阅读 · 0 评论 -
lua string.fromat
lua里format打印boolean类型,如果使用了%s或%d会报如下错误:bad argument #2 to ‘format’ (string expected, got boolean)解决方法:查了如下,把boolean转换成string再打印。https://stackoverflow.com/questions/46056455/bad-argument-3-to-format-string-expected-got-booleanYou need to manually evalua原创 2021-11-09 10:23:21 · 1464 阅读 · 0 评论