From c393dc1d1b7ac6905b1ef9d9d77153db7205a282 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Sat, 26 Feb 2022 17:52:21 +0800 Subject: [PATCH] 0.0.74 --- PyPI/setup.cfg | 2 +- PyPI/src/guan/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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]