positive: "1.is来判断<br>groupName = params['groupName'] ##groupName的值是'url' reqBody['dim'] = groupName print(""reqBody_dim-SummaryListHandler"", reqBody['dim']) ## ('reqBody_dim-SummaryListHandler', u'url') print(""reqBody_dim_url-SummaryListHandler"", ('url' is reqBody['dim'])) ## ('reqBody_dim_url-SummaryListHandler', False) if groupName is 'url': 打印如下,看到通过is判断是false ('reqBody_dim-SummaryListHandler', u'url') ('reqBody_dim_url-SummaryListHandler', False)<br>2.id 和in<br>看到用in可以判断两个字符串相等<br>print(""groupName:"",groupName) reqBody['dim'] = groupName print(""reqBody_dim-SummaryListHandler"", reqBody['dim']) print(""reqBody_dim_url_is-SummaryListHandler"", ('url' is groupName)) print(""reqBody_dim_url_id-SummaryListHandler"", (id('url')==id(groupName))) print(""reqBody_dim_url_in-SummaryListHandler"", ('url' in groupName)) ('groupName:', u'url') ('reqBody_dim-SummaryListHandler', u'url') ('reqBody_dim_url_is-SummaryListHandler', False) ('reqBody_dim_url_id-SummaryListHandler', False) ('reqBody_dim_url_in-SummaryLis"
negative: <img><br>客厅放假花没关系的,只要保证卫生达标就可以。不过从风水格局来说,客厅不宜在屋内摆放假花假草:有常见有些家庭喜在客厅中摆放许多假花假草,表面上看来虽然赏心悦目,实际上却易带给男女主人较重的桃花或婚姻问题;况且更易带给家中未婚成员婚姻上的阻碍,容易引来虚情假意或遇人不淑的气运,甚至影响家人的财运、使人投资理财判断失误,造成财运不济的现象。