diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 51e5619..b838717 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.73 +version = 0.0.74 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan/__init__.py b/PyPI/src/guan/__init__.py index 9c87f76..a2cac61 100644 --- a/PyPI/src/guan/__init__.py +++ b/PyPI/src/guan/__init__.py @@ -1811,12 +1811,12 @@ def play_academic_words(bre_or_ame='ame', random_on=0, show_translation=1, show_ except: pass print(h2.get_text()) - if show_link==1: - print('https://www.ldoceonline.com/dictionary/'+word) try: pygame.mixer.init() track = pygame.mixer.music.load(directory+word+'.mp3') pygame.mixer.music.play() + if show_link==1: + print('https://www.ldoceonline.com/dictionary/'+word) except: pass translation = re.findall('
.*?
', content, re.S)[0][3:-4]