Miscellaneous
Part I: Module
# Example import sys sys.path.append('/Users/lei/Desktop') import mymax # mymax is self-defined function stored in Desktop mymax.mymax(1,5)
import pip # needed to use the pip functions for i in pip.get_installed_distributions(local_only=True): print(i)
Part II: Data structure
new_list = list[:]
Last updated