各位好,想请教个问题
newAction := []byte(action)
new_Action := []byte(_action)
var dp [][]bool
for循环里 有句话报错:
dp【i】【j】 = (new_Action[j - 1] == '?' || newAction[i - 1] == new_Action[j - 1]) && dp【i - 1】【j - 1】
错误看不懂,但指向这一行 goroutine 1 [running]:
main.isMatch(0x613e62, 0x9, 0xc0000a0ed6, 0xa, 0xc0000d1ca8)
/home/tusimple/dewei/go/auth.go:143 +0x230
我dp是 true false类型,想去判断 dp[][] 的状态。请问这句话有什么问题,谢谢