Update youdao.py
判断 同根词 值 屏蔽 返回的错误值
This commit is contained in:
		
							parent
							
								
									25a3dda5e1
								
							
						
					
					
						commit
						d50d412543
					
				@ -145,7 +145,10 @@ class Youdao(WebService):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @export([u'同根词', u'Related words'])
 | 
					    @export([u'同根词', u'Related words'])
 | 
				
			||||||
    def fld_rel_word(self):
 | 
					    def fld_rel_word(self):
 | 
				
			||||||
        return self._get_singledict('rel_word')
 | 
					        val = self._get_singledict('rel_word')
 | 
				
			||||||
 | 
					        if val is None or val == '' or u'词根:${rel_word.getStem()}' in str(val):
 | 
				
			||||||
 | 
					            return ' '
 | 
				
			||||||
 | 
					        return val
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @export([u'同近义词', u'Synonyms'])
 | 
					    @export([u'同近义词', u'Synonyms'])
 | 
				
			||||||
    def fld_syno(self):
 | 
					    def fld_syno(self):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user