Software :pycharm
Define the syntax structure of a function :
def Function name ():
Code block
def yes define Abbreviation .
def test():
print(" What do I do ")
print(" What am I gonna do? ")
print(" Really? ")
Python Use in def To define a function , You need to import packages when using them in other files .
import tongku tongku.test()
After the new file is run, it displays runfie, No operation results , Treatment method :
On the code page, right-click to select run To run the .