Exemple #1
0
import printing_models as print

completed_models = []
print.print_models(['phone case', 'figure', 'doll'], completed_models)
print.show_models(completed_models)
Exemple #2
0
#import printing_models
#from printing_models import print_models,show_completed_models
#from printing_models import print_models as pm, show_completed_models as scm
import printing_models as pm

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

#printing_models.print_models(unprinted_designs[:], completed_models)
#printing_models.show_completed_models(completed_models)

#pm(unprinted_designs[:], completed_models)
#scm(completed_models)

pm.print_models(unprinted_designs[:], completed_models)
pm.show_completed_models(completed_models)
Exemple #3
0
#8.15 Printing Models

unprinted_designs = ['dodecahedron', 'mathsphere', 'catenary']
completed_designs = []

import printing_models as pm
pm.print_models(unprinted_designs, completed_designs)
pm.show_completed_models(completed_designs)
import printing_models

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

printing_models.print_models(unprinted_designs, completed_models)
printing_models.show_completed_models(completed_models)
Exemple #5
0
from printing_models import print_models, show_completed_models

unprinted_models = ["spaceship", "jaeger", "anime figure", "statue"]
completed_models = []

print_models(unprinted_models, completed_models)
show_completed_models(completed_models)
#Very good the printing_models module and functions work perfectly.

##8-16:
import untitled

magicians = ["mason karsevar", "alice karsevar", "kieth mosher", "tj hooker"]
great_magicians = untitled.make_great(magicians)
untitled.show_magicians(great_magicians)

import untitled as un

magicians = ["mason karsevar", "alice karsevar", "kieth mosher", "tj hooker"]
new_magicians = un.make_great(magicians)
un.show_magicians(new_magicians)

from untitled import make_great

magicians = ["mason karsevar", "alice karsevar", "kieth mosher", "tj hooker"]
new_magicians = make_great(magicians)
print(new_magicians)

from untitled import show_magicians as show

magicians = ["mason karsevar", "alice karsevar", "kieth mosher", "tj hooker"]
Exemple #6
0
# 导入printing_models整个模块
import printing_models

name=['hou','yin','xu','wang']
like=[]
printing_models.print_models(name,like)





Exemple #7
0
from printing_models import print_models, show_completed

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

print_models(unprinted_designes, completed_models)
show_completed(completed_models)
Exemple #8
0
import printing_models
from printing_models import print_models as pm

unprinted = ["datta", "Rama", "Krishna", "Guru"]
printed = []

printing_models.print_models(unprinted[:], printed)
for printed in printed:
    print(f"{printed}")



print("\nTesting unprinted designs using alias\n")
print(unprinted)
printed_new = []
pm(unprinted[:], printed_new)

for printed in printed_new:
    print(printed)