python報(bào)錯(cuò)TypeError: bad operand type for unary +: 'str'的一種解決方法
(認(rèn)知有限, 如有不妥,還望告知,歡迎討論)
問題產(chǎn)生背景
在執(zhí)行對(duì)字符串的連接操作時(shí)報(bào)錯(cuò)TypeError: bad operand type for unary +: 'str'
解決方案:增加換行符(對(duì)的,這里就是這么簡(jiǎn)單。。。)
沒了,其他的可能,或許可以在下面這里找到
https://stackoverflow.com/questions/54839901/python-typeerror-bad-operand-type-for-unary-str
=END=
標(biāo)簽: