#coding:gbk#8-1消息defdisplay_message():"""指出本章学习的内容"""print("本章学习的是函数")
display_message()#8-2喜欢的图书deffavorite_book(title):"""打印出最喜欢的图书"""print("One of my favorite book is "+ title.title()+"!")
favorite_book('alice in wonderland')
Python编程:从入门到实践练习8.1#coding:gbk#8-1消息def display_message(): """指出本章学习的内容""" print("本章学习的是函数") display_message()#8-2喜欢的图书def favorite_book(title): """打印出最喜欢的图书""" print("One of my favorite book is " + title.title()+ "!") favorite_book('alice