Home
Sign Up
Sign In
›
Lua 5.3 中文手册
›
Learn Lua in 15 Minutes
›
Lua 5.3 Manual
›
LuaJIT
›
ngx_lua
›
Zero Brane Studio
›
MoonScript
403.83
550.97
V2EX
›
Lua
为什么 Lua 本身不包含像 endswith() 之类的特别常用的字符串函数呢?
Livid
·
PRO
·
Jan 8, 2015
· 8276 views
This topic created in 4323 days ago, the information mentioned may be changed or developed.
是因为什么样的设计哲学方面的原因么。
http://lua-users.org/wiki/StringRecipes
字符串
endswith
Lua
4 replies
•
2015-02-18 00:39:19 +08:00
hicdn
Jan 8, 2015
1
split 也需要自己实现
wanjun
Jan 8, 2015
2
C有么?
cctvsmg
Jan 8, 2015
3
大概是因为懒,lua更新太慢了,包管理系统又不完善
imzyxwvu
Feb 18, 2015
4
lua感觉喜欢用比较简单的东西实现复杂的事情吧。你可以用string.match(str, "abcdef$")代替endswith。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2394 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms ·
UTC 05:15
·
PVG 13:15
·
LAX 21:15
·
JFK 00:15
♥ Do have faith in what you're doing.
❯