print('天才是由{:.0%}的灵感,加上{:.0%}的汗水。'.format(0.01,0.99))
字符串格式化输出,更多知识请参考视频教程:
https://www.bilibili.com/video/av58530260/?p=44