Example #1
0
def main():
    def show_completed_models(completed_models):
        """显示打印好的所有模型"""
        print("\nThe following models have been printed:")
        for completed_model in completed_models:
            print(completed_model)

    unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
    completed_models = []

    printing_function.print_models(unprinted_designs, completed_models)
    show_completed_models(completed_models)
Example #2
0
from printing_function import print_models, show_completed_models

# Объявляем списки
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []

print_models(unprinted_designs, completed_models)
show_completed_models(completed_models)

# Printing model: dodecahedron
# Printing model: robot pendant
# Printing model: iphone case
#
# The following models have been printed:
# dodecahedron
# robot pendant
# iphone case
Example #3
0
import printing_function

# Объявляем списки
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []

printing_function.print_models(unprinted_designs, completed_models)
printing_function.show_completed_models(completed_models)

# Printing model: dodecahedron
# Printing model: robot pendant
# Printing model: iphone case
#
# The following models have been printed:
# dodecahedron
# robot pendant
# iphone case
Example #4
0
import printing_function as pf

unprinted_design = ['Dell latitude case', 'samsung s10 case', 'posters']
completed_models = []

pf.print_models(unprinted_design, completed_models)
pf.show_completed_models(completed_models)