c++小发现 当运行以下c++代码 1234567#include<iostream>using namespace std;int main(){ cout<<"abc"+1<<endl; return 0;} 结果将会是输出”bc”:原因是”abc”本质是一个字符串字面量是const char[]类型,会退化为const 2025-03-30
my-first-blog 一种有趣的字符串去空格写法123456from functools import reducedef not_space(ch): if ch!=' ': return Truechlist=list(filter(not_space, "he llo world"))print(reduce(lambda x,y:x+y,chlis 2025-03-30