简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
C++ 中 printf输出string字符串的方法
C++ 中 printf输出string字符串不能直接printf("%s",str);非常不方便,一个一个字符输出也不现实。这里可以借助str.c_str()函数对字符串str进行转换,再输出。#include<stdio.h>#include <iostream>using namespace std;int main(){string str="123abc";cou
ubuntu更换pip源
更换pip源。清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:https://mirrors.aliyun.com/pypi/simple无法写入pip.conf可用下面的命名查看buftype的设置,当buftype=nofile时,不能保存文件,只有当buftype=空时,才可以保存修改buftype的方法:vim切换至ex模式,输入如果想该回原设
暂无文章信息