示例#1
0
import printing_functions as pf

unprinted_designs = ['fff', 'apple', 'banana']
completed_models = []

pf.print_models(unprinted_designs, completed_models)
pf.show_completed_models(completed_models)
import printing_functions

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

printing_functions.print_models(unprinted_designs, completed_models)
printing_functions.show_completed_models(completed_models)
# # Start with some designs that need to be printed.
# unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
# completed_models = []

# def print_models(unprinted_designs, completed_models):
#     # Simulate printing each design, until none are left.
#     # Move each design to completed_models after printing.
#     while unprinted_designs:
#         current_design = unprinted_designs.pop()
#         # Simulate creating a 3D print from the design.
#         print("Printing model: " + current_design)
#         completed_models.append(current_design)
#
# def show_completed_models(completed_models):
#     # Display all completed models
#     print("\nThe following models have been printed: ")
#     for completed_model in completed_models:
#         print(completed_model)
import printing_functions

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

printing_functions.print_models(unprinted_designs, completed_models)
printing_functions.show_completed_models(completed_models)
示例#4
0
import printing_functions as p1
p1.show_completed_models("1")

from printing_functions import show_completed_models as p2
p2("2")
示例#5
0
import printing_functions as prnt_func

# def print_models(unprinted_designs, completed_models):
#     while unprinted_designs:
#         current_design = unprinted_designs.pop()
#         print(f'Model: {current_design.title()}')
#         completed_models.append(current_design)
#
# def show_completed_models(completed_models):
#     for i in completed_models:
#         print(f'Completed Models: {i.title()}')

incomplete_designs = ['Tiger', 'Elephant', 'Gorilla']
complete_designs = []

# print_models(unprinted_designs, completed_models)
# show_completed_models(completed_models)

prnt_func.print_models(incomplete_designs, complete_designs)
prnt_func.show_completed_models(complete_designs)
示例#6
0
import printing_functions as p

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

p.print_models(p.unprinted_designs, p.completed_models)
p.show_completed_models(p.completed_models)
from printing_functions import print_models, show_completed_models

unprinted_designs = ['iPhoneケース', 'ロボットのペンダント', '12面体']
completed_models = []

print_models(unprinted_designs, completed_models)
show_completed_models(completed_models)
示例#8
0
文件: 8-15.py 项目: brewswain/PCC
import printing_functions as models

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

models.print_models(unprinted_designs, completed_models)
models.show_completed_models(completed_models)
import printing_functions as pfs

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

pfs.print_models(unprinted_designs, completed_designs)
pfs.show_completed_models(completed_designs)
示例#10
0
import printing_functions

printing_functions.show_completed_models("1")

from printing_functions import show_completed_models

show_completed_models("2")

from printing_functions import show_completed_models as p1

p1("3")

import printing_functions as p2

p2.show_completed_models("4")

from printing_functions import *

show_completed_models("5")
示例#11
0
from printing_functions import print_models, show_completed_models
designs2 = []
designs = ['shoes', 'shirts', 'iphone']
print_models(designs, designs2)
show_completed_models(designs2)
import printing_functions as pf

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

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