How to import my own modules in python 3.6?
问题 Let's say I have a file like: Project0\pizza.py Project0\make_pizza.py and pizza: def make_pizza(size,*toppings): print("\nMaking a " + str(size) + "-inch pizza with the following toppings:") for topping in toppings: print("- " + topping) and make_pizza: from pizza import make_pizza pizza.make_pizza(16, 'pepperoni') and as shown in the codes, I want to import pizza into make_pizza , but the IDE shows up an error that there is no module named pizza. How can I solve this problem and import