C++实现——string的所有操作

2023-11-08

这里写图片描述

****C++ 中string的操作****
Constructors 构造函数,用于字符串初始化 
Operators 操作符,用于字符串比较和赋值 
append() 在字符串的末尾添加文本 
assign() 为字符串赋新值 
at() 按给定索引值返回字符 
begin() 返回一个迭代器,指向第一个字符 
c_str() 将字符串以C字符数组的形式返回 
capacity() 返回重新分配空间前的字符容量 
compare() 比较两个字符串 
copy() 将内容复制为一个字符数组 
data() 返回内容的字符数组形式 
empty() 如果字符串为空,返回真 
end() 返回一个迭代器,指向字符串的末尾。(最后一个字符的下一个位置) 
erase() 删除字符 
find() 在字符串中查找字符 
find_first_of() 查找第一个与value中的某值相等的字符 
find_first_not_of() 查找第一个与value中的所有值都不相等的字符 
find_last_of() 查找最后一个与value中的某值相等的字符 
find_last_not_of() 查找最后一个与value中的所有值都不相等的字符 
get_allocator() 返回配置器 
insert() 插入字符 
length() 返回字符串的长度 
max_size() 返回字符的最大可能个数 
rbegin() 返回一个逆向迭代器,指向最后一个字符 
rend() 返回一个逆向迭代器,指向第一个元素的前一个位置 
replace() 替换字符 
reserve() 保留一定容量以容纳字符串(设置capacity值) 
resize() 重新设置字符串的大小 
rfind() 查找最后一个与value相等的字符(逆向查找) 
size() 返回字符串中字符的数量 
substr() 返回某个子字符串 
swap() 交换两个字符串的内容 
//C++中字符串的研究
#include <iostream>
#include <string>

using namespace std;
/////////////////////////////////
//字符串的几种构造方式
void construct(){

    string str1(5, 'c');
    string str2("Now is the time...");
    string str3(str2, 11, 4);
    string str4(str3);
    string str5 = "I am a boy";
    string str6(str2.begin() + 1, str2.begin() + 3);
    cout << str1 << endl;
    cout << str2 << endl;
    cout << str3 << endl;
    cout << str4 << endl;
    cout << str5 << endl;
    cout << str6 << endl;
}

/////////////////////////////////
 //字符串支持的操作符
// == >  <  >= <=  != +  +=  []

/////////////////////////////////
//文本添加
/*
添加文本(append)
语法:
basic_string &append( const basic_string &str );
basic_string &append( const char *str );
basic_string &append( const basic_string &str, size_type index, size_type len );
basic_string &append( const char *str, size_type num );
basic_string &append( size_type num, char ch );
basic_string &append( input_iterator start, input_iterator end );

append() 函数可以完成以下工作:

在字符串的末尾添加str,
在字符串的末尾添加str的子串,子串以index索引开始,长度为len
在字符串的末尾添加str中的num个字符,
在字符串的末尾添加num个字符ch,
在字符串的末尾添加以迭代器start和end表示的字符序列.
例如以下代码:

string str = "Hello World";
str.append( 10, '!' );
cout << str << endl;

显示

Hello World!!!!!!!!!!


*/

/////////////////////////////////

//赋值操作
/*
赋值(assign)
语法:
basic_string &assign( const basic_string &str );
basic_string &assign( const char *str );
basic_string &assign( const char *str, size_type num );
basic_string &assign( const basic_string &str, size_type index, size_type len );
basic_string &assign( size_type num, char ch );



函数以下列方式赋值:

用str为字符串赋值,
用str的开始num个字符为字符串赋值,
用str的子串为字符串赋值,子串以index索引开始,长度为len
用num个字符ch为字符串赋值.
例如以下代码:

string str1, str2 = "War and Peace";
str1.assign( str2, 4, 3 );
cout << str1 << endl;

显示

and


*/

/////////////////////////////////
//at操作
/*

at
语法:
reference at( size_type index );


at()函数返回一个引用,指向在index位置的字符. 如果index不在字符串范围内, at() 将报告"out of range"错误,并抛出out_of_range异常。 比如下列代码:

string text = "ABCDEF";
char ch = text.at( 2 );

显示字符 'C'.


*/
/////////////////////////////////
/*
begin
语法:
iterator begin();

begin()函数返回一个迭代器,指向字符串的第一个元素.

*/
/////////////////////////////////
/*
容量(capacity)
语法:
size_type capacity();

capacity()函数返回在重新申请更多的空间前字符串可以容纳的字符数. 这个数字至少与 size()一样大.

*/
/////////////////////////////////

/*

比较(compare)
语法:
int compare( const basic_string &str );
int compare( const char *str );
int compare( size_type index, size_type length, const basic_string &str );
int compare( size_type index, size_type length, const basic_string &str, size_type index2,
size_type length2 );
int compare( size_type index, size_type length, const char *str, size_type length2 );



compare()函数以多种方式比较本字符串和str,返回:

返回值 情况
小于零 this < str
零 this == str
大于零 this > str

不同的函数:

比较自己和str,
比较自己的子串和str,子串以index索引开始,长度为length
比较自己的子串和str的子串,其中index2和length2引用str,index和length引用自己
比较自己的子串和str的子串,其中str的子串以索引0开始,长度为length2,自己的子串以index开始,长度为length

*/
/////////////////////////////////

/*
拷贝(copy)
语法:
size_type copy( char *str, size_type num, size_type index );


copy()函数拷贝自己的num个字符到str中(从索引index开始)。返回值是拷贝的字符数


*/

/*/////////////////////////////////
data
语法 :
const char *data();

data()函数返回指向自己的第一个字符的指针.


/////////////////////////////////
empty
语法:
bool empty();


如果字符串为空则empty()返回真(true),否则返回假(false).

/////////////////////////////////
end
语法:
iterator end();


end()函数返回一个迭代器,指向字符串的末尾(最后一个字符的下一个位置).


/////////////////////////////////
删除(erase)
语法:
iterator erase( iterator pos );
iterator erase( iterator start, iterator end );
basic_string &erase( size_type index = 0, size_type num = npos );



erase()函数可以:

删除pos指向的字符, 返回指向下一个字符的迭代器,
删除从start到end的所有字符, 返回一个迭代器,指向被删除的最后一个字符的下一个位置
删除从index索引开始的num个字符, 返回*this.
参数index 和 num 有默认值, 这意味着erase()可以这样调用:只带有index以删除index后的所有字符,或者不带有任何参数以删除所有字符. 例如:

string s("So, you like donuts, eh? Well, have all the donuts in the world!");
cout << "The original string is '" << s << "'" << endl;

s.erase( 50, 14 );
cout << "Now the string is '" << s << "'" << endl;

s.erase( 24 );
cout << "Now the string is '" << s << "'" << endl;

s.erase();
cout << "Now the string is '" << s << "'" << endl;

将显示

The original string is 'So, you like donuts, eh? Well, have all the donuts in the world!'
Now the string is 'So, you like donuts, eh? Well, have all the donuts'
Now the string is 'So, you like donuts, eh?'
Now the string is ''


/////////////////////////////////
查找(find)
语法:
size_type find( const basic_string &str, size_type index );
size_type find( const char *str, size_type index );
size_type find( const char *str, size_type index, size_type length );
size_type find( char ch, size_type index );



find()函数:

返回str在字符串中第一次出现的位置(从index开始查找)。如果没找到则返回string::npos,
返回str在字符串中第一次出现的位置(从index开始查找,长度为length)。如果没找到就返回string::npos,
返回字符ch在字符串中第一次出现的位置(从index开始查找)。如果没找到就返回string::npos
例如,

string str1( "Alpha Beta Gamma Delta" );
unsigned int loc = str1.find( "Omega", 0 );
if( loc != string::npos )
cout << "Found Omega at " << loc << endl;
else
cout << "Didn't find Omega" << endl;



/////////////////////////////////
find_first_of
语法:
size_type find_first_of( const basic_string &str, size_type index = 0 );
size_type find_first_of( const char *str, size_type index = 0 );
size_type find_first_of( const char *str, size_type index, size_type num );
size_type find_first_of( char ch, size_type index = 0 );



find_first_of()函数:

查找在字符串中第一个与str中的某个字符匹配的字符,返回它的位置。搜索从index开始,如果没找到就返回string::npos
查找在字符串中第一个与str中的某个字符匹配的字符,返回它的位置。搜索从index开始,最多搜索num个字符。如果没找到就返回string::npos,
查找在字符串中第一个与ch匹配的字符,返回它的位置。搜索从index开始。

/////////////////////////////////
find_first_not_of
语法:
size_type find_first_not_of( const basic_string &str, size_type index = 0 );
size_type find_first_not_of( const char *str, size_type index = 0 );
size_type find_first_not_of( const char *str, size_type index, size_type num );
size_type find_first_not_of( char ch, size_type index = 0 );



find_first_not_of()函数:

在字符串中查找第一个与str中的字符都不匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops
在字符串中查找第一个与str中的字符都不匹配的字符,返回它的位置。搜索从index开始,最多查找num个字符。如果没找到就返回string::nops
在字符串中查找第一个与ch不匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops

/////////////////////////////////
find_last_of
语法:
size_type find_last_of( const basic_string &str, size_type index = npos );
size_type find_last_of( const char *str, size_type index = npos );
size_type find_last_of( const char *str, size_type index, size_type num );
size_type find_last_of( char ch, size_type index = npos );



find_last_of()函数:

在字符串中查找最后一个与str中的某个字符匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops
在字符串中查找最后一个与str中的某个字符匹配的字符,返回它的位置。搜索从index开始,最多搜索num个字符。如果没找到就返回string::nops
在字符串中查找最后一个与ch匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops

/////////////////////////////////
find_last_not_of
语法:
size_type find_last_not_of( const basic_string &str, size_type index = npos );
size_type find_last_not_of( const char *str, size_type index = npos);
size_type find_last_not_of( const char *str, size_type index, size_type num );
size_type find_last_not_of( char ch, size_type index = npos );



find_last_not_of()函数:

在字符串中查找最后一个与str中的字符都不匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops
在字符串中查找最后一个与str中的字符都不匹配的字符,返回它的位置。搜索从index开始,最多查找num个字符如果没找到就返回string::nops
在字符串中查找最后一个与ch不匹配的字符,返回它的位置。搜索从index开始。如果没找到就返回string::nops

/////////////////////////////////
插入(insert)
语法:
iterator insert( iterator i, const char &ch );
basic_string &insert( size_type index, const basic_string &str );
basic_string &insert( size_type index, const char *str );
basic_string &insert( size_type index1, const basic_string &str, size_type index2, size_type num );
basic_string &insert( size_type index, const char *str, size_type num );
basic_string &insert( size_type index, size_type num, char ch );
void insert( iterator i, size_type num, const char &ch );
void insert( iterator i, iterator start, iterator end );



insert()函数的功能非常多:

在迭代器i表示的位置前面插入一个字符ch,
在字符串的位置index插入字符串str,
在字符串的位置index插入字符串str的子串(从index2开始,长num个字符),
在字符串的位置index插入字符串str的num个字符,
在字符串的位置index插入num个字符ch的拷贝,
在迭代器i表示的位置前面插入num个字符ch的拷贝,
在迭代器i表示的位置前面插入一段字符,从start开始,以end结束.

/////////////////////////////////

长度(length)
语法:
size_type length();



length()函数返回字符串的长度. 这个数字应该和size()返回的数字相同.


/////////////////////////////////
max_size
语法:
size_type max_size();



max_size()函数返回字符串能保存的最大字符数。



/////////////////////////////////
rbegin
语法:
const reverse_iterator rbegin();



rbegin()返回一个逆向迭代器,指向字符串的最后一个字符。

相关主题:

/////////////////////////////////
rend
语法:
const reverse_iterator rend();



rend()函数返回一个逆向迭代器,指向字符串的开头(第一个字符的前一个位置)。

/////////////////////////////////
替换(replace)
语法:
basic_string &replace( size_type index, size_type num, const basic_string &str );
basic_string &replace( size_type index1, size_type num1, const basic_string &str, size_type index2,
size_type num2 );
basic_string &replace( size_type index, size_type num, const char *str );
basic_string &replace( size_type index, size_type num1, const char *str, size_type num2 );
basic_string &replace( size_type index, size_type num1, size_type num2, char ch );
basic_string &replace( iterator start, iterator end, const basic_string &str );
basic_string &replace( iterator start, iterator end, const char *str );
basic_string &replace( iterator start, iterator end, const char *str, size_type num );
basic_string &replace( iterator start, iterator end, size_type num, char ch );



replace()函数:

用str中的num个字符替换本字符串中的字符,从index开始
用str中的num2个字符(从index2开始)替换本字符串中的字符,从index1开始,最多num1个字符
用str中的num个字符(从index开始)替换本字符串中的字符
用str中的num2个字符(从index2开始)替换本字符串中的字符,从index1开始,num1个字符
用num2个ch字符替换本字符串中的字符,从index开始
用str中的字符替换本字符串中的字符,迭代器start和end指示范围
用str中的num个字符替换本字符串中的内容,迭代器start和end指示范围,
用num个ch字符替换本字符串中的内容,迭代器start和end指示范围.
例如,以下代码显示字符串"They say he carved it himself...find your soul-mate, Homer."
string s = "They say he carved it himself...from a BIGGER spoon";
string s2 = "find your soul-mate, Homer.";

s.replace( 32, s2.length(), s2 );

cout << s << endl;


/////////////////////////////////
保留空间(reserve)
语法:
void reserve( size_type num );



reserve()函数设置本字符串的capacity 以保留num个字符空间。

/////////////////////////////////
resize
语法:
void resize( size_type num );
void resize( size_type num, char ch );



resize()函数改变本字符串的大小到num, 新空间的内容不确定。也可以指定用ch填充。

/////////////////////////////////
rfind
语法:
size_type rfind( const basic_string &str, size_type index );
size_type rfind( const char *str, size_type index );
size_type rfind( const char *str, size_type index, size_type num );
size_type rfind( char ch, size_type index );



rfind()函数:

返回最后一个与str中的某个字符匹配的字符,从index开始查找。如果没找到就返回string::npos
返回最后一个与str中的某个字符匹配的字符,从index开始查找,最多查找num个字符。如果没找到就返回string::npos
返回最后一个与ch匹配的字符,从index开始查找。如果没找到就返回string::npos
例如,在下列代码中第一次调用rfind()返回string::npos,因为目标词语不在开始的8个字符中。然而,第二次调用返回9,因为目标词语在开始的20个字符之中。
int loc;
string s = "My cat's breath smells like cat food.";

loc = s.rfind( "breath", 8 );
cout << "The word breath is at index " << loc << endl;

loc = s.rfind( "breath", 20 );
cout << "The word breath is at index " << loc << endl;


/////////////////////////////////
size
语法:
size_type size();



size()函数返回字符串中现在拥有的字符数。


/////////////////////////////////
substr
语法:
basic_string substr( size_type index, size_type num = npos );



substr()返回本字符串的一个子串,从index开始,长num个字符。如果没有指定,将是默认值 string::npos。这样,substr()函数将简单的返回从index开始的剩余的字符串。

例如:

string s("What we have here is a failure to communicate");

string sub = s.substr(21);

cout << "The original string is " << s << endl;
cout << "The substring is " << sub << endl;

显示:

The original string is What we have here is a failure to communicate
The substring is a failure to communicate


/////////////////////////////////

/////////////////////////////////*/
int main(){
    //构造方式
    construct();

    int loc;
    string s = "My ccc's breath smells like cat food.";

    loc = s.rfind("breath");
    int loc2 = s.find("breath");
    int loc3 = s.find_first_of("breath");
    cout << "The word breath is at index " << loc << "  "<<loc2<<"  "<<loc3<< endl;


    return 0;
}

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

C++实现——string的所有操作 的相关文章

  • 如何替换 pandas 数据框列中的重音符号

    我有一个数据框dataSwiss其中包含瑞士城市的信息 我想用普通字母替换带有重音符号的字母 这就是我正在做的 dataSwiss Municipality dataSwiss Municipality str encode utf 8 d
  • 以编程方式将字符串宽度值插入到 sprintf() 中

    我正在尝试以编程方式将字符串宽度值插入到sprintf 格式 期望的结果是 sprintf 20s hello 1 hello 但我想插入20在同一通话中即时进行 因此它可以是任何号码 我努力了 sprintf ds 20 hello 1
  • 测试 python Counter 是否包含在另一个 Counter 中

    如何测试是否是pythonCounter https docs python org 2 library collections html collections Counter is 包含在另一个中使用以下定义 柜台a包含在计数器中b当且
  • 确定 C 字符串是否是 C 中的有效 int

    我需要检查 C 字符串是否是有效整数 我都尝试过 int num atoi str and int res sscanf str d num 但发送字符串 8 9 10 这两行都仅返回 8 而没有指示该字符串的无效性 谁能提出替代方案 看看
  • Javascript split 不是一个函数

    嘿朋友们 我正在使用 javascript sdk 通过 jQuery facebook 多朋友选择器在用户朋友墙上发布信息 但是我收到此错误friendId split 不是函数 这是我的代码 function recommendToFr
  • 如何在 Swift 2.0 中使用 stringByAddingPercentEncodingWithAllowedCharacters() 作为 URL

    我在 Swift 1 2 中使用过这个 let urlwithPercentEscapes myurlstring stringByAddingPercentEscapesUsingEncoding NSUTF8StringEncoding
  • std::setw 如何处理字符串输出?

    我正在尝试使用设置宽度setw但是 对于将字符串输出到输出文件 我无法使其工作 我有下面的例子 setw example include
  • Java中使用正则表达式确定字符串是否为URL [重复]

    这个问题在这里已经有答案了 可能的重复 检查字符串是否为有效 URL 的最佳正则表达式是什么 https stackoverflow com questions 161738 what is the best regular express
  • 颜色变换器功能上的堆栈溢出错误

    我有两种颜色 红色 和 鲑鱼色 我需要动态创建面板以及面板背景颜色 这些颜色必须介于两种颜色之间 红色 public Color x y protected void Page Load object sender EventArgs e
  • c++ 最大 std::string 长度由堆栈大小或堆大小决定?

    正如问题中所问 std string myVar 它可以容纳的最大字符是由堆栈还是堆决定的 谢谢 默认情况下 分配的内存为std string是动态分配的 注意std string has a max size 函数返回实现支持的最大字符数
  • 数组所有可能的组合

    我有一个字符串数组 ted williams golden voice radio 我希望这些关键字的所有可能组合采用以下形式 ted williams golden voice radio ted williams ted golden
  • 查找字符串中最常见的子字符串的算法

    是否有任何算法可用于查找字符串中最常见的短语 或子字符串 例如 以下字符串将 hello world 作为其最常见的两个单词短语 hello world this is hello world hello world repeats thr
  • Java 中旅行商问题的暴力算法

    我正在学校的数学课上做一个项目 我选择做旅行商问题 这是我一直想进行更多研究的问题 但是 我的暴力求解算法遇到了问题 请前往底部更新查看最新版本代码 如果您知道旅行推销员问题是什么 请跳过本段 尽可能概括地说 TSP 是这样的 您是一名推销
  • Java 中查看 ArrayList 是否包含对象的最有效方法

    我有一个 Java 对象的 ArrayList 这些对象有四个字段 我用其中两个字段来将对象视为与另一个对象相等 我正在寻找最有效的方法 给定这两个字段 以查看数组是否包含该对象 问题在于这些类是基于 XSD 对象生成的 因此我无法修改类本
  • 在 Python 中从 Excel 复制 YEARFRAC() 函数

    因此 我使用 python 来自动执行一些必须在 Excel 中执行的重复任务 我需要做的计算之一需要使用yearfrac 这在Python中被复制了吗 I found this https lists oasis open org arc
  • 高度并行化的Levenshtein距离算法

    实际上 我必须实现一个字符串比较 最后得到匹配百分比 不仅仅是布尔结果匹配 不匹配 为此 我找到了 Levenstein 距离算法 但现在的问题是性能 例如 我有 1k 个字符串需要相互比较 现在大约需要 10 分钟 对于每个算法 我已经并
  • 在Python中使用.replace替换多个字符[重复]

    这个问题在这里已经有答案了 所以我试图制作一个简单的程序 将一个短语解码为不同的短语 这是我现在的代码 def mRNA decode phrase newphrase phrase replace A U phrase replace T
  • 最小化代表性整数的误差之和

    Given n integers between 0 10000 as D1 D2 Dn where there may be duplicates and n can be huge I want to find k distinct r
  • string.Empty 与 null。您使用哪一个?

    最近工作的同事告诉我不要使用string Empty设置字符串变量时但使用null因为它污染了堆栈 他说不做 string myString string Empty but do string mystring null 真的有关系吗 我
  • 检查 JavaScript 字符串是否为 URL

    JavaScript 有没有办法检查字符串是否是 URL 正则表达式被排除在外 因为 URL 很可能是这样写的stackoverflow 也就是说它可能没有 com www or http 如果你想检查一个字符串是否是有效的 HTTP UR

随机推荐

  • Random类中的nextInt()函数

    Random的两个nextInt函数 1 Random的nextInt 是无参函数 用来随机生成 范围之间的整数 2 Random的nextInt int n 函数用来随机生成 0 n 之间的整数 切记是前闭后开
  • clion报错:该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失

    windows下clion报错 该文件包含不能在当前代码页 936 中表示的字符 请将该文件保存为 Unicode 格式以防止数据丢失 我的clion在windows下因为minGW安装问题 暂时用的是微软Visual Studio 的环境
  • linux NPS 服务端安装 +linux 客户端安装

    本文参考博客 https blog csdn net m0 57776598 article details 123674866 一 下载安装包 1 官方下载 官方下载地址 https github com ehang io nps rel
  • C语言每日一练Day2 对于常量的定义

    1 获取用户输入的商品价格 价格在一百以内 输出找零 1 获取用户输入的商品价格 价格在一百以内 输出找零 include
  • QT QSS简单使用

    之前完成的QT程序完成逻辑控制后 界面全都使用图片填充的方式来做美化 但是使用到的组件看上去很丑 因此上网简单学习之后做总结如下 之前也未学习过CSS等知识属于纯小白 如有错误 不吝赐教 1 新建工程 略 新建一个工程用于本次demo的学习
  • 靠着这个计算机视觉目标跟踪实战项目,成功拿到商汤视觉算法工程师offer(深度学习/计算机视觉/图像处理/目标跟踪/物体检测)

    计算机视觉基本任务 开讲之前给大家准备了深度学习CV计算机视觉学习资料包 内含 两大Pytorch TensorFlow实战框架源码资料 OpenCV YOLO物体检测实战项目 计算机视觉等视频和资料以及深度学习书籍 名额有限 速速领取哦
  • Input.GetButtonDown("")的用法

    Input GetButtonDown 的用法 转载 2015 06 07 18 07 45 标签 it pic01 pic02 pic03 GetButtonDown的用法 1 通过 Edit Project settings Input
  • smtp协议源ip是服务器地址吗,什么是SMTP服务器

    什么是SMTP服务器 smtp服务器是什么 SMTP 的全称是Simple Mail Transfer Protocol 即简单邮件传输协议 它是一组用于从源地址到目的地址传输邮件的规范 通过它来控制邮件的中转方式 SMTP 协议属于TCP
  • Python 的 map、列表推导、循环效率比较

    话不多说 直接上代码 1 准备数据 三个列表 import time x x1 x2 for i in range 1000000 x append i x1 append i x2 append i 2 开始表演 2 1 for循环 st
  • docker是什么,能做什么,如何用

    Docker概述 Docker历史 docker能干嘛 Docker安装 Docker的基本组成 安装Docker 镜像加速 配置使用 回顾HelloWorld流程 底层原理 Docker为什么出现 一款产品 开发 上线 两套环境 应用环境
  • VS调试时显示FbxString内容

    在使用FBX SDK时 在VS里到了断点处 总是无法查看FBXString的字符串内容 在Watch里显示的也是一堆地址 以至于每次都得写下const char temp fbxString gt Buffer 今天竟然无意间发现在SDK根
  • ESP8266退出上电透传模式

    AT SAVETRANSLINK 1 192 168 6 110 1002 TCP 通过类似指令将TCP连接的信息写入到esp8266的Flash中去 并开启开机透传模式 及一开机就进入透传模式 此时的AT指令无效 要想重新使得AT指令有效
  • 由对称性知定点一定在x轴上_圆锥曲线解答题的经典答案:由椭圆的对称性知,定点在x轴上?...

    有很多圆锥曲线综合题要研究定点问题 答案里往往有这样一句话 由椭圆的对称性知 定点必在x轴上 或者说一句 显然定点在y轴上 看得童鞋们丈二和尚摸不着头脑 1 读者提问 一位来自广东 昵称为 h 的高三学生这样提问 左老师好 请教一个定点问题
  • 什么是AppImage

    A 什么是AppImage 在linux系统中使用AppImage 多年以来 我们一直使用 DEB packages 来管理 Debian Ubuntu的软件包 使用 RPM 管理 Fedora SUSE 的软件包 用户使用这些包管理工具可
  • 华为数字化转型之道认知篇第一章数字化转型,华为的战略选择

    第一章 数字化转型 华为的战略选择 农业经济以土地为生产资料 工业经济以石油和各类矿产为生产资料 数字经济则以数据为生产资料 数字化转型以ICT平台为生产工具 以数据为生产资料 以服务为产品 不仅能为企业的传统业务赋予新动能 也能为企业带来
  • jq匹配偶数行_jQuery中两种奇偶选择器的区别

    原标题 jQuery中两种奇偶选择器的区别 jQuery中的选择器在选择元素的时候经常用到 今天主要介绍jQuery中的奇偶选择器 jquery中的奇偶选择器要用到CSS3伪类选择器 nth child nth child 的用法 直接匹配
  • 为云服务器添加python web环境

    为云服务器添加python web环境 自用不喜勿喷 当前配置 阿里云win10云服务器 anaconda配置的python环境 操作步骤 1 参照教程配置python及Django 2 pyCharm如何运行Django https ww
  • vue标签属性及其用法

    一 Vue的特点 1 采用组件化模式 提高代码的复用率 且让代码更好维护 2 声明编码 让编码人员无需直接操作DOM 提高开发效率 3 使用学你DOM 优秀的Diff算法 尽量服用DOM节点 二 Vue模板语法有两大类 1 插值语法 功能
  • Springboot修改内置Tomcat版本

    背景 Tomcat的安全漏洞需要升级版本进行解决 如 9 0 63 gt 9 0 75 1 Pom文件Springboot的依赖配置项 2 Ctrl 右键点击红色框选 3 全局搜索 修改 修改数值 启动测试
  • C++实现——string的所有操作

    C 中string的操作 Constructors 构造函数 用于字符串初始化 Operators 操作符 用于字符串比较和赋值 append 在字符串的末尾添加文本 assign 为字符串赋新值 at 按给定索引值返回字符 begin 返