a = "%占位方式" b = ".fromat占位方式" print("这是%s"%a) print("这是{}".format(b))