基本字符串拼接错误

veiky · · 838 次点击
是啊,被吃了,而且你看下,字符串顺序也是乱的
#6
更多评论
polaris
社区,需要你我一同完善!
没看出有啥问题
#1
``` appid := env1.Get("APPID") fmt.Printf("type of appid is %T, len of appid is %d\n", appid, len(appid)) secret := env1.Get("SECRET") fmt.Printf("type of secret is %T, len of secret is %d\n", secret, len(secret)) url := `https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=`+appid+`&secret=`+secret fmt.Println(url) ``` ![image.png](https://static.studygolang.com/190428/a10761391b688f6f78bbc3acef6d8bd4.png)
#2