# 8-16
"""pizza.py"""
def make_pizza(size , *topping):
print("\nMaking a " + str(size) +
"-inch pizza with the following toppings:")
for topping in toppings:
print("- " + topping)
"""making_pizza.py"""
import pizza
pizza.make_pizza(16 , 'pepperoni')
pizza.make_pizza(37 , 'mushrooms' , 'green peppers' , 'extra cheese')
from pizza import make_pizza
make_pizza(20 , 'pepperoni')
make_pizza(47 , 'mushrooms' , 'green peppers' , 'extra cheese')
from pizza import make_pizza as ma
ma(66 , 'pepperoni')
ma(717 , 'mushrooms' , 'green peppers' , 'extra cheese')
import pizza as p
p.make_pizza(99 , 'pepperoni')
p.make_pizza(123 , 'mushrooms' , 'green peppers' , 'extra cheese')
from pizza import *
make_pizza(16 , 'pepperoni')
make_pizza(37 , 'mushrooms' , 'green peppers' , 'extra cheese')
2019.12.28
最新推荐文章于 2020-04-18 21:53:49 发布