This commit is contained in:
guanjihuan 2023-04-06 20:31:52 +08:00
parent 862dde85bf
commit b76a9134eb
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
[metadata] [metadata]
# replace with your username: # replace with your username:
name = guan name = guan
version = 0.0.166 version = 0.0.167
author = guanjihuan author = guanjihuan
author_email = guanjihuan@163.com author_email = guanjihuan@163.com
description = An open source python package description = An open source python package

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: guan Name: guan
Version: 0.0.166 Version: 0.0.167
Summary: An open source python package Summary: An open source python package
Home-page: https://py.guanjihuan.com Home-page: https://py.guanjihuan.com
Author: guanjihuan Author: guanjihuan

View File

@ -2,7 +2,7 @@
# With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing. # With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
# The current version is guan-0.0.166, updated on March 02, 2023. # The current version is guan-0.0.167, updated on April 06, 2023.
# Installation: pip install --upgrade guan # Installation: pip install --upgrade guan
@ -3291,7 +3291,7 @@ def play_academic_words(reverse=0, random_on=0, bre_or_ame='ame', show_translati
if exist_directory == 0: if exist_directory == 0:
os.makedirs(directory) os.makedirs(directory)
soup = BeautifulSoup(html, features='lxml') soup = BeautifulSoup(html, features='lxml')
contents = re.findall('<h2>.*?</a></p>', html, re.S) contents = re.findall('<h2.*?</a></p>', html, re.S)
if random_on==1: if random_on==1:
random.shuffle(contents) random.shuffle(contents)
if reverse==1: if reverse==1:
@ -3404,7 +3404,7 @@ def play_element_words(random_on=0, show_translation=1, show_link=1, translation
if exist_directory == 0: if exist_directory == 0:
os.makedirs(directory) os.makedirs(directory)
soup = BeautifulSoup(html, features='lxml') soup = BeautifulSoup(html, features='lxml')
contents = re.findall('<h2>.*?</a></p>', html, re.S) contents = re.findall('<h2.*?</a></p>', html, re.S)
if random_on==1: if random_on==1:
random.shuffle(contents) random.shuffle(contents)
for content in contents: for content in contents: