转载自for_each使用方法详解

Introduction
學習過STL的container後,想要存取每一個iterator,你一定寫過以下的程式

for_each使用方法#include <vector>
for_each使用方法#include 
<iostream>
for_each使用方法
for_each使用方法
using namespace std;
for_each使用方法
for_each使用方法
int main() {
for_each使用方法  
int ia[] = {123};
for_each使用方法  vector
<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
for_each使用方法  
for_each使用方法  
for(vector<int>::const_iterator iter = ivec.begin(); iter != ivec.end(); ++iter) {
for_each使用方法    cout 
<< *iter << endl;
for_each使用方法  }

for_each使用方法}


執行結果

for_each使用方法1
for_each使用方法
2
for_each使用方法
3


當時我覺得STL什麼都好,就是以下這一串又臭又長

for_each使用方法for(vector<int>::const_iterator iter = ivec.begin(); iter != ivec.end(); ++iter) {
for_each使用方法


若不常寫,一時還會寫不出來,其實若配合container,C++其實不應該這樣寫迴圈,正確的方式該使用for_each(),語法會變的相當簡單。

for_each()事實上是個function template,其實做如下[effective STL item 41]

for_each使用方法template<typename InputIterator, typename Function>
for_each使用方法Function for_each(InputIterator beg, InputIterator end, Function f) 
{
for_each使用方法  
while(beg != end) 
for_each使用方法    f(
*beg++);
for_each使用方法}

for_each使用方法


由以上source可知,for_each()只能配合global function和function object。

以下我們將對procedure based、object oriented、generics三種paradigm與for_each()搭配做探討。

Procedure Based與for_each()搭配
1.不傳入參數

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_GlobalFunction.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with global function
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法
13for_each使用方法using namespace std;
14for_each使用方法
15for_each使用方法void printElem(int& elem) {
16for_each使用方法  cout << elem << endl;
17for_each使用方法}

18for_each使用方法
19for_each使用方法int main() {
20for_each使用方法  int ia[] = {123};
21for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
22for_each使用方法  
23for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem);
24for_each使用方法}


執行結果

for_each使用方法1
for_each使用方法
2
for_each使用方法
3


23行

for_each使用方法for_each(ivec.begin(), ivec.end(), printElem);


只需將vector::begin(),vector::end()和global function name傳給for_each()即可,再也不用for迴圈那種複雜的語法了。 

2.傳入參數
若要傳參數給global function,就不能再只傳global function name而已,必須透過ptr_fun()這個function adapter將global function轉成function object,然後再用bind2nd()將參數bind成一個function object。

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_GlobalFunctionWithParameter.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with global function with Parameter
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法#include <functional>
13for_each使用方法
14for_each使用方法using namespace std;
15for_each使用方法
16for_each使用方法void printElem(int elem, const char* prefix) {
17for_each使用方法  cout << prefix << elem << endl;
18for_each使用方法}

19for_each使用方法
20for_each使用方法int main() {
21for_each使用方法  int ia[] = {123};
22for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
23for_each使用方法  
24for_each使用方法  for_each(ivec.begin(), ivec.end(), bind2nd(ptr_fun(printElem), "Element:"));
25for_each使用方法}


執行結果

for_each使用方法Element:1
for_each使用方法Element:
2
for_each使用方法Element:
3


Object Oriented與for_each()搭配
1.不傳入參數
使用function object

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_FunctionObject.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with function object
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法
13for_each使用方法using namespace std;
14for_each使用方法
15for_each使用方法struct printElem {
16for_each使用方法  void operator() (int elem) {
17for_each使用方法    cout << elem << endl;
18for_each使用方法  }
 
19for_each使用方法}
;
20for_each使用方法
21for_each使用方法int main() {
22for_each使用方法  int ia[] = {123};
23for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
24for_each使用方法  
25for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem());
26for_each使用方法}


執行結果

for_each使用方法1
for_each使用方法
2
for_each使用方法
3


2.傳入參數
若使用function object,也可以將參數傳給printElem(),透過constructor的技巧接收參數。

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_FunctionObjectWithParameter.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with function object with parameter
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法
13for_each使用方法using namespace std;
14for_each使用方法
15for_each使用方法struct printElem {
16for_each使用方法  const char* _prefix;
17for_each使用方法
18for_each使用方法  printElem(const char* prefix) : _prefix(prefix) {}
19for_each使用方法  
20for_each使用方法  void operator() (int elem) {
21for_each使用方法    cout << _prefix << elem << endl;
22for_each使用方法  }
 
23for_each使用方法}
;
24for_each使用方法
25for_each使用方法int main() {
26for_each使用方法  int ia[] = {123};
27for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
28for_each使用方法  
29for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem("Element:"));
30for_each使用方法}


執行結果 

for_each使用方法Element:1
for_each使用方法Element:
2
for_each使用方法Element:
3


function object有很多種寫法,但只要是function object都可以跟for_each()合作。

3.member_function與for_each()搭配
3.1 不傳入參數
本文的重點來了,在物件導向世界裡,最常用的就是for_each()配合member function,這該怎麼寫呢?直覺會這樣子寫

for_each使用方法for_each(_doorVec.begin(), _doorVec.end(),&Door::open);


由於global function name本身就是一個pointer,所以想藉由&Door::open傳進一個address,但這樣compile並不會過,正確解法是

for_each使用方法for_each(_doorVec.begin(), _doorVec.end(), mem_fun_ref(&Door::open));


透過mem_fun_ref()這個function adapter將member function轉成function object。
for_each使用方法

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法
 4for_each使用方法Filename    : GenericAlgo_for_each_MemberFunctionObject.cpp
 5for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 6for_each使用方法Description : Demo how to use for_each with member function with object
 7for_each使用方法Release     : 05/11/2007 1.0
 8for_each使用方法*/

 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法#include <functional>
13for_each使用方法
14for_each使用方法using namespace std;
15for_each使用方法
16for_each使用方法class Door {
17for_each使用方法public:
18for_each使用方法  void open() const {
19for_each使用方法    cout << "open door horizontally" << endl;
20for_each使用方法  }

21for_each使用方法  
22for_each使用方法  void close() const {
23for_each使用方法    cout << "close door horizontally" << endl;
24for_each使用方法  }

25for_each使用方法}
;
26for_each使用方法
27for_each使用方法class DoorController {
28for_each使用方法protected:
29for_each使用方法  vector<Door> _doorVec;
30for_each使用方法  
31for_each使用方法public:
32for_each使用方法  void addDoor(Door aDoor) {
33for_each使用方法    _doorVec.push_back(aDoor);
34for_each使用方法  }

35for_each使用方法  
36for_each使用方法  void openDoor() const {
37for_each使用方法    for_each(_doorVec.begin(), _doorVec.end(), mem_fun_ref(&Door::open));
38for_each使用方法  }

39for_each使用方法}
;
40for_each使用方法
41for_each使用方法int main() {
42for_each使用方法  DoorController dc;
43for_each使用方法  dc.addDoor(Door());
44for_each使用方法  dc.addDoor(Door());
45for_each使用方法  dc.openDoor();
46for_each使用方法}


執行結果

for_each使用方法open door horizontally
for_each使用方法open door horizontally


37行

for_each使用方法for_each(_doorVec.begin(), _doorVec.end(), mem_fun_ref(&Door::open));


值得注意的是,mem_fun_ref()用在object的member function。若要搭配多型,vector必須放pointer,也就是得使用object pointer的member function,此時得使用mem_fun()將member function轉成function object。
for_each使用方法

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法
 4for_each使用方法Filename    : GenericAlgo_for_each_MemberFunctionObjectPointer.cpp
 5for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 6for_each使用方法Description : Demo how to use for_each with member function with object pointer
 7for_each使用方法Release     : 05/11/2007 1.0
 8for_each使用方法*/

 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法#include <functional>
13for_each使用方法
14for_each使用方法using namespace std;
15for_each使用方法
16for_each使用方法class AbstractDoor {
17for_each使用方法public:
18for_each使用方法  virtual void open() const {
19for_each使用方法    cout << "open door horizontally" << endl;
20for_each使用方法  }

21for_each使用方法  
22for_each使用方法  virtual void close() const {
23for_each使用方法    cout << "close door horizontally" << endl;
24for_each使用方法  }

25for_each使用方法}
;
26for_each使用方法
27for_each使用方法class HorizontalDoor : public AbstractDoor {
28for_each使用方法}
;
29for_each使用方法
30for_each使用方法class VerticalDoor : public AbstractDoor {
31for_each使用方法public:
32for_each使用方法  void open() const {
33for_each使用方法    cout << "open door vertically" << endl;
34for_each使用方法  }

35for_each使用方法  
36for_each使用方法  void close() const {
37for_each使用方法    cout << "close door vertically" << endl;
38for_each使用方法  }

39for_each使用方法}
;
40for_each使用方法
41for_each使用方法class DoorController {
42for_each使用方法protected:
43for_each使用方法  vector<AbstractDoor*> _doorVec;
44for_each使用方法  
45for_each使用方法public:
46for_each使用方法  void addDoor(AbstractDoor& aDoor) {
47for_each使用方法    _doorVec.push_back(&aDoor);
48for_each使用方法  }

49for_each使用方法  
50for_each使用方法  void openDoor() const {
51for_each使用方法    for_each(_doorVec.begin(), _doorVec.end(), mem_fun(&AbstractDoor::open));
52for_each使用方法  }

53for_each使用方法}
;
54for_each使用方法
55for_each使用方法int main() {
56for_each使用方法  DoorController dc;
57for_each使用方法  dc.addDoor(HorizontalDoor());
58for_each使用方法  dc.addDoor(VerticalDoor());
59for_each使用方法  dc.openDoor();
60for_each使用方法}


執行結果

for_each使用方法open door horizontally
for_each使用方法open door vertically


51行

for_each使用方法for_each(_doorVec.begin(), _doorVec.end(), mem_fun(&AbstractDoor::open));


使用了mem_fun()。

3.2傳入參數
問題又來了,若要使member function也傳入參數呢?這時得使用bind2nd將function object和參數bind在一起,變成另外一個新的function object。

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法
 4for_each使用方法Filename    : GenericAlgo_for_each_MemberFunctionObjectPointerWithParameter.cpp
 5for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 6for_each使用方法Description : Demo how to use for_each with member function with object pointer
 7for_each使用方法Release     : 05/11/2007 1.0
 8for_each使用方法*/

 9for_each使用方法#include <iostream>
10for_each使用方法#include <vector>
11for_each使用方法#include <algorithm>
12for_each使用方法#include <functional>
13for_each使用方法
14for_each使用方法using namespace std;
15for_each使用方法
16for_each使用方法class AbstractDoor {
17for_each使用方法public:
18for_each使用方法  virtual void open() const {
19for_each使用方法    cout << "open door horizontally" << endl;
20for_each使用方法  }

21for_each使用方法  
22for_each使用方法  virtual void close() const {
23for_each使用方法    cout << "close door horizontally" << endl;
24for_each使用方法  }

25for_each使用方法  
26for_each使用方法  virtual void openDoorBy(const char* name) const {
27for_each使用方法    cout << name << " ";
28for_each使用方法    open();
29for_each使用方法  }

30for_each使用方法}
;
31for_each使用方法
32for_each使用方法class HorizontalDoor : public AbstractDoor {
33for_each使用方法}
;
34for_each使用方法
35for_each使用方法class VerticalDoor : public AbstractDoor {
36for_each使用方法public:
37for_each使用方法  void open() const {
38for_each使用方法    cout << "open door vertically" << endl;
39for_each使用方法  }

40for_each使用方法  
41for_each使用方法  void close() const {
42for_each使用方法    cout << "close door vertically" << endl;
43for_each使用方法  }

44for_each使用方法}
;
45for_each使用方法
46for_each使用方法class DoorController {
47for_each使用方法protected:
48for_each使用方法  vector<AbstractDoor*> _doorVec;
49for_each使用方法  
50for_each使用方法public:
51for_each使用方法  void addDoor(AbstractDoor& aDoor) {
52for_each使用方法    _doorVec.push_back(&aDoor);
53for_each使用方法  }

54for_each使用方法  
55for_each使用方法  void openDoor() const {
56for_each使用方法    for_each(_doorVec.begin(), _doorVec.end(), bind2nd(mem_fun(&AbstractDoor::openDoorBy), "John"));
57for_each使用方法  }

58for_each使用方法}
;
59for_each使用方法
60for_each使用方法int main() {
61for_each使用方法  DoorController dc;
62for_each使用方法  dc.addDoor(HorizontalDoor());
63for_each使用方法  dc.addDoor(VerticalDoor());
64for_each使用方法  dc.openDoor();
65for_each使用方法}


執行結果

1for_each使用方法John open door horizontally
2for_each使用方法John open door vertically


56行

for_each使用方法for_each(_doorVec.begin(), _doorVec.end(), bind2nd(mem_fun(&AbstractDoor::openDoorBy), "John"));


透過了bind2nd將參數結合後,成為一個新的function object。

Generics與for_each()搭配
1.Function Template
1.1不傳入參數
在泛型世界裡,那for_each()該怎麼配合function template呢?

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_FunctionTemplate.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with function template
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法
13for_each使用方法using namespace std;
14for_each使用方法
15for_each使用方法template<typename T>
16for_each使用方法void printElem(T elem) {
17for_each使用方法  cout << elem << endl;
18for_each使用方法}

19for_each使用方法
20for_each使用方法int main() {
21for_each使用方法  int ia[] = {123};
22for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
23for_each使用方法  
24for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem<int>);
25for_each使用方法  //for_each(ivec.begin(), ivec.end(), (void(*)(int))printElem);
26for_each使用方法}


執行結果

for_each使用方法1
for_each使用方法
2
for_each使用方法
3


若使用function template,有兩種寫法
一種是

for_each使用方法for_each(ivec.begin(), ivec.end(), printElem<int>);


由於template function需要在compile時確定型別,所以要加上<int>確定為int型別。
另外一種寫法

for_each使用方法for_each(ivec.begin(), ivec.end(), (void(*)(int))printElem);


template function並沒有確定型別,但轉成function pointer時,並須明確轉成int型別的function pointer。

1.2 傳入參數
若要如function object那樣能傳參數呢?funtion template是可以,不過有些限制,若使用nontype parameter,只能使用以下三種型別
1.int或enum
2.pointer:pointer to object,pointer to function,pointer to member。
3.reference:reference to object,reference to function。

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_FunctionTemplateWithNontypeParameter.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with function template with nontype parameter
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法
13for_each使用方法using namespace std;
14for_each使用方法
15for_each使用方法template<typename T, int i>
16for_each使用方法void printElem(T elem) {
17for_each使用方法  cout << i << ":"  << elem << endl;
18for_each使用方法}

19for_each使用方法
20for_each使用方法int main() {
21for_each使用方法  int ia[] = {123};
22for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
23for_each使用方法  
24for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem<int5>);
25for_each使用方法}


執行結果

for_each使用方法5:1
for_each使用方法
5:2
for_each使用方法
5:3


所以無法如function object那樣可以傳入字串或任意型別,最少在目前ISO C++標準是做不到的。

既然討論了function template,那最具威力的class template是否也能搭配for_each()?

2.Class Template
2.1 不傳入參數

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_ClassTemplate.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with class template
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法#include <functional>
13for_each使用方法
14for_each使用方法using namespace std;
15for_each使用方法
16for_each使用方法template<typename T>
17for_each使用方法class printElem : public unary_function<T, void> {
18for_each使用方法public:
19for_each使用方法  void operator() (T elem) {
20for_each使用方法    cout << elem << endl;
21for_each使用方法  }

22for_each使用方法}
;
23for_each使用方法
24for_each使用方法int main() {
25for_each使用方法  int ia[] = {123};
26for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
27for_each使用方法  
28for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem<int>());
29for_each使用方法}


執行結果

for_each使用方法1
for_each使用方法
2
for_each使用方法
3


17行

for_each使用方法class printElem : public unary_function<T, void> {


因為printElem只接受for_each()所傳的參數,算是單參數而已,所以public繼承了unary_function<T,void>,因為for_each的定義

for_each使用方法template <class InputIterator, class UnaryFunction>
for_each使用方法UnaryFunction for_each(InputIterator first, InputIterator last, UnaryFunction f);


傳進去的是UnaryFunction型別,第一個type parameter T表示傳入的型別,第二個type parameter void,表示回傳的型別,最後重新定義operator()。

2.2 傳入參數
若要使class template也能傳入參數,一樣利用function object的技巧,借用constructor。

 1for_each使用方法/* 
 2for_each使用方法(C) OOMusou 2007 http://oomusou.cnblogs.com
 3for_each使用方法Filename    : GenericAlgo_for_each_ClassTemplateWithParameter.cpp
 4for_each使用方法Compiler    : Visual C++ 8.0 / BCB 6.0 / gcc 3.4.2 / ISO C++
 5for_each使用方法Description : Demo how to use for_each with class template & parameter
 6for_each使用方法Release     : 05/11/2007 1.0
 7for_each使用方法*/

 8for_each使用方法#include <iostream>
 9for_each使用方法#include <vector>
10for_each使用方法#include <iostream>
11for_each使用方法#include <algorithm>
12for_each使用方法#include <functional>
13for_each使用方法
14for_each使用方法using namespace std;
15for_each使用方法
16for_each使用方法template<typename T, typename U>
17for_each使用方法class printElem : public unary_function<T, void> {
18for_each使用方法private:
19for_each使用方法  U _prefix;
20for_each使用方法  
21for_each使用方法public:
22for_each使用方法  printElem(U prefix) : _prefix(prefix) {}
23for_each使用方法  
24for_each使用方法  void operator() (T elem) {
25for_each使用方法    cout << _prefix << elem << endl;
26for_each使用方法  }

27for_each使用方法}
;
28for_each使用方法
29for_each使用方法int main() {
30for_each使用方法  int ia[] = {123};
31for_each使用方法  vector<int> ivec(ia, ia + sizeof(ia) / sizeof(int));
32for_each使用方法  
33for_each使用方法  for_each(ivec.begin(), ivec.end(), printElem<intconst char*>("Element:"));
34for_each使用方法}


執行結果

for_each使用方法Element:1
for_each使用方法Element:
2
for_each使用方法Element:
3


Conclusion
STL的for_each()事實上很好用,不過由於限制很多,所以常令很多新手卻步,本文試著將所有會遇到問題的地方都提出來討論,包括procedure based、object oriented、generics三種paradigm與for_each()的搭配都涵蓋了,希望對各位有幫助。

相关文章:

  • 2021-11-12
  • 2021-06-02
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案