ocal a = "喂(你好)吗"
	local b = "喂(你好)"
	local s,e = string.find(a,b)
	print("s "..s)
	print("e "..e) 
这样会提示  attempt to concatenate local 's' (a nil value)

	local a = "喂你好吗"
	local b = "喂你好"
	local s,e = string.find(a,b)
	print("s "..s)
	print("e "..e) 
这样就没有问题 会显示
s 1
e 6
是不是有这个( 的字符串查找不能这样用啊?

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-01-09
  • 2021-10-16
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-10-31
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案