- 博客(3)
- 收藏
- 关注
原创 python 初学的那些踩坑:replace字符串替换失效问题:
在py中string是一个不可变对象,因此replace方法不能直接对字符串进行替换操作,因此我们可以这么写: str= str.replace('A','a') 这样就实现了对字符串本身的替换操作 ...
2020-02-22 22:37:33 1064
原创 vscode输出中文乱码问题,已解决
最近在用vscode学c++,但是在输出中文时遇到了乱码问题,经过一番折腾,找到了原因。 之所以会在输出中文时产生中文乱码,是因为**vscode在编译c++时是使用cmd窗口进行编译输出的,而vscode的编码格式一般默认为UTF-8格式,cmd窗口的默认格式与vscode的编码格式不同导致了中文乱码的产生** 然后我们打开cmd窗口查看系统cmd默认的编码格式: 点击属性 红线部分就是...
2020-02-21 17:19:12 3041 2
原创 PTA1001号题
PTA1001号题: Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). PTA题库 1001 A+B Format #i...
2019-11-17 22:34:56 178
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人