package main import "fmt" func MaxLength(str1, str2 string) int { m, n := len(str1), len(str2) //方法一:初始化一个二维切片 //var dp [][]int //for i := 0; i < m+1; i++ { // ar := make([]int, n+1) // dp = append(dp, ar) //} //方法二:初始化一个二维切片 dp := make([][]int, m+1) for i := range dp { dp[i] = ma...