Question
As title. I have a function as below:
- def my_function(first, last, age, middle=''):
- print "My name is %s %s (%s) and I am %d years old" % (first, last, middle, age)
- data_dict = {"first":"Lee", "last":"John", "middle":"KC", "age":18}
Check below usage:
More on how to use function in Python, please refer to "[Quick Python] 9. Functions"
沒有留言:
張貼留言