Mad libs
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> name1 = input('请输入一个名字:') 请输入一个名字:王星奥 >>> name2 = input('再输入一个名字:') 再输入一个名字:武松 >>> animal = input('请输入一种动物:') 请输入一种动物:大象 >>> print('一二三四五{}上山打{}不在家打到{}'.format(name1,name2,animal)) 一二三四五王星奥上山打武松不在家打到大象 >>> input('press any key') press any key

浙公网安备 33010602011771号