摘要: 题目 给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。 说明: 返回的下标值(index1 和 index2)不是从零开始的。 你可以假设每个输入只对应唯一的答案,而且你 阅读全文
posted @ 2019-07-31 22:03 Micheal_L 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 格式化输出的三种方式 一、占位符 my name is nick my age is 19 my age is 19 二、format格式化 Hello,nick. You are 19. Hello,nick. You are 19 19 Hello,nick. You are 19 19. 三、 阅读全文
posted @ 2019-07-31 15:01 Micheal_L 阅读(965) 评论(0) 推荐(0) 编辑