摘要: 1.list列表合并用join >>> a = ["hello", "world"]>>> a['hello', 'world']>>> ' '.join(a)'hello world'>>> ','.join(a)'hello,world'>>> ''.join(a)'helloworld' 2. 阅读全文
posted @ 2020-10-21 14:49 黑暗尽头的超音速炬火 阅读(109) 评论(0) 推荐(0) 编辑
摘要: PS:vector数组的不同赋值方法 圆括号(n个相同的数)和花括号(枚举值)是不同的初始化方法 class Solution { public: int lengthOfLIS(vector<int>& nums) { int n=2; vector<int> dp(n,2); vector<in 阅读全文
posted @ 2020-10-21 10:46 黑暗尽头的超音速炬火 阅读(120) 评论(0) 推荐(0) 编辑