【Python】如何检测字符串非空?

【【Python】如何检测字符串非空?】

【Python】如何检测字符串非空?

文章插图
【Python】如何检测字符串不是空?【Python】如何检测字符串不是空?简介:我可以这样做吗?word = input( quot;写一个字 quot)如果len(word)= = 0:print( quot;无 quot)解决方法: