什么鸟会飞不会走不会飞,请问

什么鸟不会飞
什么鸟不会飞
不区分大小写匿名
你下面的鸟
当然是驼鸟了…
我认为还有死鸟和没有翅膀的鸟儿也同样不会飞…
哗,这样说也行啊你
看你以什么角度去看,比如上面哪几位,企鹅
鸵鸟 企鹅 几维鸟 渡渡鸟《已灭绝.》..
不会飞的鸟是指已失去飞行能力的鸟类,取而代之的是奔跑及游泳的能力。虽然如此,但普遍相信它们都是由懂得飞行的共同祖先进化而来。现存约有40种不会飞的鸟类,包括企鹅、鸵鸟及鹬鸵(奇异鸟)等广为人知的物种,及部分属于其他目的物种。除了诸如鸵鸟及鸸鹋等大型的不会飞的鸟仍拥有强而有力的爪去对抗猎食者之外,大部分不会飞的鸟所面对的均为没有太多捕猎者的环境、或是隔绝性的海岛,花费极大气力的飞行并不符合效益,因此它们的进化倾向失去这种能力。编辑本段特征 与大部分能够飞行的鸟类比较,两个最重要的分别是它们或是拥有细小的翼骨、或是胸骨上的龙骨缺失了(或大幅度缩小)。细小的翼骨使拍翼的力度大减,由翼面提供的升力也不足以应付飞行所需;龙骨是翼肌附着的地方,凸起的龙骨大大增加所能附着的翼肌,从而提供拍翼时所需的强大力量。但扁平的胸骨不足以达成上述的任务(所以也常被称作平胸类),飞行能力从此失去。此外,不会飞的鸟一般有较多的羽毛,像鸵鸟的羽毛就杂乱丛生。 相比起其他地区,新西兰有较多的不会飞的鸟类,如奇异鸟、企鹅及南秧鸡等。其中一个原因是在人类首次踏足这个土地上时(约1000年前),岛上并没有地栖形的捕猎者,它们最大的敌人反而是大型的猛禽——飞行并不是逃避敌人的有效方法。 不会飞的鸟类在面对人类所造成的威胁时冲击较大,因此它们面临灭绝的机会也较高;幸运的是它们也较易被圈养保护,简单的栏杆已是有效的工具。人类很早就懂得牧养鸵鸟以取得其羽毛,现在的规模更大,以取得其肉作食及皮作为皮革制品。 已灭绝的不会飞的骇鸟并不如现在的不会飞的鸟类般单纯,它们强而有力的腿提供高速奔跑的能力,由羽翼演化成的肉钩形结构使他们能撕开其猎物。在2500万年前它们一直位列食物链的顶层,直至剑齿虎的出现才有所改变。望采纳,加好评谢谢
鸵鸟及鸸鹋
鸵鸟、企鹅都不会飞。
  鸵鸟(Struthio camelus)
  鸸鹋(Dromaius novaehollandiae)
  袋鼠岛鸸鹋(Dromaius baudinianus)
  王岛鸸鹋(Dromaius ater)
  南方鹤鸵(Casuarius casuarius)
  单垂鹤鸵(Casuarius unappendiculatus)
  侏鹤鸵(Casuarius bennetti)
  恐鸟科所有种(Dinornithidae灭绝)
  象鸟科所有种(Aepyornithidae灭绝)
  大奇威鸟(Apteryx australis)
  大斑奇威鸟(Apteryx haastii)
  小斑奇威鸟(Apteryx owenii)
  美洲鸵鸟属
  美洲鸵鸟(Rhea americana)
  美洲小鸵(Rhea pennata) 鸊鷉目
  秘鲁鸊鷉(Podiceps taczanowskii)
  短翅鸊鷉(Rollandia microptera)
  阿提特兰??(据说不会飞[Hunter 1988]灭绝)(可能不会飞) 鹈形目
  弱翅鸬鹚(Phalacrocorax harrisi) 企鹅目
  所有企鹅 佛法僧目
  圣赫勒拿岛戴胜+(Upupa antaios) 雁形目
  Moa-nalos灰船鸭(Tachyeres pteneres)
  短翅船鸭(Tachyeres brachypterus)
  白头船鸭(Tachyeres leucocephalus)
  奥克兰鸭(Anas aucklandica)
  甘贝尔岛野鸭(Anas nesiotis) 鹳形目
  留尼汪孤鸽(Threskiornis solitarius) 鹤形目
  古巴鹤(Grus cubensis)
  红秧鸡(Aphanapteryx bonasia)
  罗德里格斯秧鸡+(Aphanapteryx leguati)
  乌氏秧鸡 (Nesoclopeus woodfordi)(可能不会飞)
  斑翅秧鸡(Nesoclopeus poecilopterus)(可能不会飞)
  新西兰秧鸡(Gallirallus australis)
  新喀里多尼亚秧鸡(Gallirallus lafresnayanus)
  豪岛秧鸡(Gallirallus sylvestris)
  卡拉杨秧鸡(Gallirallus calayanensis)
  新不列颠秧鸡(Gallirallus insignis)
  关岛秧鸡(Gallirallus owstoni野外灭绝)
  所罗门秧鸡(Gallirallus rovianae)(可能不会飞 (Taylor et. al.,1998))
  塔希提岛红嘴秧鸡(Gallirallus pacificus)
  呆秧鸡(Gallirallus dieffenbachii绝灭)
  查塔姆秧鸡(Cabalus modestus)
  威克岛秧鸡(Gallirallus wakensis绝灭)
  普拉氏秧鸡(Aramidopsis platen)
  雷仙岛秧鸡(Porzana palmeri灭绝)
  夏威夷秧鸡(Porzana sandwichensis灭绝)
  库岛田鸡(Porzana monasa)
  斑胸田鸡(Porzana atra)
  大嘴秧鸡(Habroptila wallacii)
  新几内亚秧鸡(Megacrex inepta)
  新不列颠紫水鸡(Porphyrio albus灭绝)
  短翅水鸡(Porphyrio mantelli)
  南秧鸡(Porphyrio hochstetteri)
  萨摩亚水鸡(Gallinula pacifica)
  马基拉水鸡(Gallinula silvestris)
  特瑞斯坦水鸡(Gallinula nesiotis)
  Gough Island Moorhen
  Adzebill
  鹭鹤(Rhynochetos jubatus)
  绿水鸡(Gallinula mortierii) 鸻形目
  大海雀(Pinguinus impennis灭绝) 鹦形目
  鸮鹦鹉(Strigops habroptila)
  毛里求斯鹦鹉(Lophopsittacus mauritianus) 鸽形目
  渡渡鸟(Raphus cucullatus(灭绝)
  罗德里格斯渡渡鸟(Pezophaps solitaria灭绝)
  Viti Levu Giant Pigeon 夜鹰目
  New Zealand Owlet-nightjar
  雀形目斯蒂芬岛异鹩(Xenicus lyalli灭绝)
相关知识等待您来回答
花鸟鱼虫领域专家什么鸟不会飞?
什么鸟不会飞? 5
脑筋急转弯
鸵鸟就不会飞
其他回答 (8)
脑筋急转弯
就是 菜鸟吧
鸵鸟就不会飞
不会飞的鸟是指已失去飞行能力的鸟类,取而代之的是奔跑及游泳的能力。虽然如此,但普遍相信它们都是由懂得飞行的共同祖先进化而来。现存约有40种不会飞的鸟类,包括企鹅、鸵鸟及鹬鸵(奇异鸟)等广为人知的物种,及部分属于其他目的物种。除了诸如鸵鸟及鸸鹋等大型的不会飞的鸟仍拥有强而有力的爪去对抗猎食者之外,大部分不会飞的鸟所面对的均为没有太多捕猎者的环境、或是隔绝性的海岛,花费极大气力的飞行并不符合效益,因此它们的进化倾向失去这种能力。   与大部分能够飞行的鸟类比较,两个最重要的分别是它们或是拥有细小的翼骨、或是胸骨上的龙骨缺失了(或大幅度缩小)。细小的翼骨使拍翼的力度大减,由翼面提供的升力也不足以应付飞行所需;龙骨是翼肌附着的地方,凸起的龙骨大大增加所能附着的翼肌,从而提供拍翼时所需的强大力量。但扁平的胸骨不足以达成上述的任务(所以也常被称作平胸类),飞行能力从此失去。此外,不会飞的鸟一般有较多的羽毛,像鸵鸟的羽毛就杂乱丛生。   相比起其他地区,新西兰有较多的不会飞的鸟类,如奇异鸟、企鹅及南秧鸡等。其中一个原因是在人类首次踏足这个土地上时(约1000年前),岛上并没有地栖形的捕猎者,它们最大的敌人反而是大型的猛禽——飞行并不是逃避敌人的有效方法。   不会飞的鸟类在面对人类所造成的威胁时冲击较大,因此它们面临灭绝的机会也较高;幸运的是它们也较易被圈养保护,简单的栏杆已是有效的工具。人类很早就懂得牧养鸵鸟以取得其羽毛,现在的规模更大,以取得其肉作食及皮作为皮革制品。   已灭绝的不会飞的骇鸟并不如现在的不会飞的鸟类般单纯,它们强而有力的腿提供高速奔跑的能力,由羽翼演化成的肉钩形结构使他们能撕开其猎物。在2500万年前它们一直位列食物链的顶层,直至剑齿虎的出现才有所改变。   不会飞的鸟类列表   以下列表为截至全新世或以后的鸟类,加上+标志表示为已灭绝。 鸵鸟目  鸵鸟(Struthio camelus)   鸸鹋(Dromaius novaehollandiae)   袋鼠岛鸸鹋(Dromaius baudinianus)   王岛鸸鹋(Dromaius ater)   鹤鸵   南方鹤鸵(Casuarius casuarius)   单垂鹤鸵(Casuarius unappendiculatus)   侏鹤鸵(Casuarius bennetti)   恐鸟科所有种(Dinornithidae)   象鸟科所有种(Aepyornithidae)   鹬鸵   大奇威鸟(Apteryx australis)   大斑奇威鸟(Apteryx haastii)   小斑奇威鸟(Apteryx owenii)   美洲鸵鸟属   美洲鸵鸟(Rhea americana)   美洲小鸵(Rhea pennata) 鸊鷉目  秘鲁鸊鷉(Podiceps taczanowskii)   短翅鸊鷉(Rollandia microptera)   阿提特兰??(据说不会飞[Hunter 1988])(可能不会飞) 鹈形目  弱翅鸬鹚(Phalacrocorax harrisi) 企鹅目  所有企鹅 佛法僧目  圣赫勒拿岛戴胜+(Upupa antaios) 雁形目  Moa-nalos灰船鸭(Tachyeres pteneres)   短翅船鸭(Tachyeres brachypterus)   白头船鸭(Tachyeres leucocephalus)   奥克兰鸭(Anas aucklandica)   甘贝尔岛野鸭(Anas nesiotis) 鹳形目  留尼汪孤鸽(Threskiornis solitarius) 鹤形目  古巴鹤(Grus cubensis)   红秧鸡(Aphanapteryx bonasia)   罗德里格斯秧鸡+(Aphanapteryx leguati)   乌氏秧鸡 (Nesoclopeus woodfordi)(可能不会飞)   斑翅秧鸡(Nesoclopeus poecilopterus)(可能不会飞)   新西兰秧鸡(Gallirallus australis)   新喀里多尼亚秧鸡(Gallirallus lafresnayanus)   豪岛秧鸡(Gallirallus sylvestris)   卡拉杨秧鸡(Gallirallus calayanensis)   新不列颠秧鸡(Gallirallus insignis)   关岛秧鸡(Gallirallus owstoni)   所罗门秧鸡(Gallirallus rovianae)(可能不会飞 (Taylor et. al.,1998))   塔希提岛红嘴秧鸡(Gallirallus pacificus)   呆秧鸡(Gallirallus dieffenbachii)   查塔姆秧鸡(Cabalus modestus)   威克岛秧鸡(Gallirallus wakensis)   普拉氏秧鸡(Aramidopsis plateni)   呆秧鸡(Atlantisia rogersi)   雷仙岛秧鸡(Porzana palmeri)   夏威夷秧鸡(Porzana sandwichensis)   库岛田鸡(Porzana monasa)   斑胸田鸡(Porzana atra)   大嘴秧鸡(Habroptila wallacii)   新几内亚秧鸡(Megacrex inepta)   新不列颠紫水鸡(Porphyrio albus)   短翅水鸡(Porphyrio mantelli)   南秧鸡(Porphyrio hochstetteri)   萨摩亚水鸡(Gallinula pacifica)   马基拉水鸡(Gallinula silvestris)   特瑞斯坦水鸡(Gallinula nesiotis)   Gough Island Moorhen   Adzebill   鹭鹤(Rhynochetos jubatus)   绿水鸡(Gallinula mortierii) 鸻形目  大海雀(Pinguinus impennis)   Diving Puffin   鹦形目鸮鹦鹉(Strigops habroptila)   毛里求斯鹦鹉(Lophopsittacus mauritianus) 鸽形目  渡渡鸟(Raphus cucullatus)   罗德里格斯渡渡鸟(Pezophaps solitaria)   Viti Levu Giant Pigeon 夜鹰目  New Zealand Owlet-nightjar   雀形目斯蒂芬岛异鹩(Xenicus lyalli)
驼鸟额,身子太大翅膀太小飞不起来
相关知识等待您来回答
花鸟鱼虫领域专家请问这种鸟是什么名字,会飞,会游泳,可能是候鸟_百度作业帮
请问这种鸟是什么名字,会飞,会游泳,可能是候鸟
学名: Cairina Moschata 俗名: 姜母鸭、红面鸭、黑色番鸭、番鸭、正蕃鸭 界/纲/目/科/属: 动物界 Animalia/鸟纲 Aves/雁形目 Anserif/鸭科 Anatidae/栖鸭属 Cairina
红面番鸭(雄) 科学(物种)分类 形态特徵: 面部有红色之肉疣为番鸭之特徵,善飞翔,脚胫及蹼为黑色.
您可能关注的推广回答者:Introduction
Regular expressions are a well recognized way for describing string patterns. The following regular expression defines a floating point number with a (possibly empty) integer part, a non empty fractional part and an optional exponent:
Collapse | [0-9]* \.[0-9]+ ([Ee](\+|-)?[0-9]+)?
The rules for interpreting and constructing such regular expressions are explained below. A regular expression parser takes a regular expression and a source string as arguments and returns the source position of the first match. Regular expression parsers either interpret the search pattern at runtime or they compile the regular expression into an efficient internal form (known as deterministic finite automaton). The regular expression parser described here belongs to the second category. Besides being quite fast, it also supports dictionaries of regular expressions. With the definitions $Int= [0-9], $Frac= \.[0-9]+ and $Exp= ([Ee](\+|-)?[0-9]+), the above regular expression for a floating point number can be abbreviated to $Int* $Frac $Exp?.
I separated algorithmic from interface issues. The files RexAlgorithm.h and RexAlgorithm.cpp implement the regular expression parser using only standard C++ (relying on STL), whereas the file RexInterface.h and RexInterface.cpp contain the interfaces for the end user. Currently there is only one interface, implemented in the class REXI_Search. Interfaces for replace functionality and for programming language scanners are planned for future releases.
Collapse | struct REXI_DefErr{
enum{eNoErr,eErrInName,eErrInRegExp} eErrC
class REXI_Search : public REXI_Base
REXI_Search(char cEos='\0');
REXI_DefErr
(string strName,string strRegExp);
REXI_DefErr
(string strRegExp);
(const char*& rpcszSrc, int& nMatchLen,bool& bEos);
(const char*& rpcszSrc, int& nMatchLen,bool& bEos);
MatchHereImpl();
Example usage
Collapse | int main(int argc, char* argv[])
const char szTestSrc[]= "3.1415 is the same as 31415e-4";
const int ncOk= REXI_DefErr::eNoE
err= rexs.AddRegDef("$Int","[0-9]+");
assert(err.eErrCode==ncOk);
err= rexs.AddRegDef("$Frac","\\.[0-9]+"); assert(err.eErrCode==ncOk);
err= rexs.AddRegDef("$Exp","([Ee](\\+|-)?[0-9]+)");
assert(err.eErrCode==ncOk);
err= rexs.SetRegexp("($Int? $Frac $Exp?|$Int \\. $Exp?|$Int $Exp)[fFlL]?");
assert(err.eErrCode==ncOk);
const char*
pCur= szTestS
bEosFound= false;
"Source text is: \""
&& "\"" &&
while(rexs.Find(pCur,nMatchLen,bEosFound)){
"Floating point number found
at position "
((pCur-szTestSrc)-nMatchLen)
" having length "
Performance issues
A call to the member function REXI_Search::SetRegexp(strRegExp)involves quite a lot of computing. The regular expression strRegExp is analyzed and after several steps transformed into a compiled form. Because of this preprocessing work, which is not needed in the case of an interpreting regular expression parser, this regular expression parser shows its efficiency only when you apply it to large input strings or if you are searching again and again for the same regular expression. A typical application which profits from the preprocessing needed by this parser is a utility which searches all files in a directory.
Limitations
Currently Unicode is not supported. There is no fundamental reason for this limitation and I think that a later release will correct this. I just did not yet find an efficient representation of a compiled regular expression which supports Unicode.
Constructing regular expressions
Regular expressions can be built from characters and special symbols. There are some similarities between regular expressions and arithmetic expressions. The most basic elements of arithmetic expressions are numbers and expressions enclosed in parens ( ). The most basic elements of regular expressions are characters, regular expressions enclosed in parens ( ) and character sets. On the next higher level, arithmetic expressions have '*' and '/' operators, whereas regular expressions have operators indicating the multiplicity of the preceding element.
Most basic elements of regular expressions
Individual characters. e.g. "h" is a regular expression. In the string "this home" it matches the beginning of 'home'. For non printable characters, one has to use either the notation \xhh where h means a hexadecimal digit or one of the escape sequences \n \r \t \v known from "C". Because the characters * + ? . | [ ] ( ) - $ ^ have a special meaning in regular expressions, escape sequences must also be used to specify these characters literally: \*&&\+&&\?&&\.&&\|&&\[&&\]&&\(&&\)&&\-&&\$&&\^&. Furthermore, use '\ ' to indicate a space, because this implementation skips spaces in order to support a more readable style.Character sets enclosed in square brackets [ ]. e.g. "[A-Za-z_$]" matches any alphabetic character, the underscore and the dollar sign (the dash (-) indicates a range), e.g. [A-Za-z$_] matches "B", "b", "_", "$" and so on. A ^ immediately following the [ of a character set means 'form the inverse character set'. e.g. "[^0-9A-Za-z]" matches non-alphanumeric characters.Expressions enclosed in round parens ( ). Any regular expression can be used on the lowest level by enclosing it in round brackets.the dot . It means 'match any character'.an identifier prefixed by a $. It refers to an already defined regular expression. e.g. "$Ident" stands for a user defined regular expression previously defined. Think of it as a regular expression enclosed in round parens, which has a name.
Operators indicating the multiplicity of the preceding element
Any of the above five basic regular expressions can be followed by one of the special characters * + ? /i
* meaning repetition (possibly zero times); e.g. "[0-9]*" not only matches "8" but also "87576" and even the empty string "".+ meaning at
e.g. "[0-9]+" matches "8", "9185278", but not the empty string.? meaning at e.g. "[$_A-Z]?" matches "_", "U", "$", .. and ""\i meaning ignore case
Catenation of regular expressions
The regular expressions described above can be catenated to form longer regular expressions. E.g. "[_A-Za-z][_A-Za-z0-9]*" is a regular expression which matches any identifier of the programming language "C", namely the first character must be alphabetic or an underscore and the following characters must be alphanumeric or an underscore. "[0-9]*\.[0-9]+" describes a floating point number with an arbitrary number of digits before the decimal point and at least one digit following the decimal point. (The decimal point must be preceded by a backslash, otherwise the dot would mean 'accept any character at this place'). "(Hallo (,how are you\?)?)\i" matches "Hallo" as well as "Hallo, how are you?" in a case insensitive way.
Alternative regular expressions
Finally - on the top level - regular expressions can be separated by the | character. The two regular expressions on the left and right side of the | are alternatives, meaning that either the left expression or the right expression should match the source text. E.g. "[0-9]+ | [A-Za-z_][A-Za-z_0-9]*" matches either an integer or a "C"-identifier.
A complex example
The programming language "C" defines a floating point constant in the following way: A floating point constant has the following parts: An integer part, a decimal point, a fraction, an exponential part beginning with e or E followed by an optional sign and digits and an optional type suffix formed by one the characters f, F, l, L. Either the integer part or the fractional part can be absent (but not both). Either the decimal point or the exponential part can be absent (but not both).
The corresponding regular expression is quite complex, but it can be simplified by using the following definitions:
Collapse | $Int = "[0-9]+."
$Frac= "\.[0-9]+".
$Exp = "([Ee](\+|-)?[0-9]+)".
So we get the following expression for a floating point constant:
Collapse | ($Int? $Frac $Exp?|$Int \. $Exp?|$Int $Exp)[fFlL]?
&&&& 摘要: 有个业务需求需要通过curl&代理的方式来访问外网
百度了一把,测试可以正常使用。记录下来方便后续查找
&
example: & 1. http://curl.haxx.se/libcurl/c/example.html& 2. http://www.libcurl.org/book:& 1. http://www.linuxdevcente...&&
支持V4协议飞信机器人发布(服务/命令模式均支持)看到论坛上有人质疑飞信机器人弹出图形验证码的行为是为了赚钱,见该贴:(请飞信机器人学学360啦)在此声明,弹出图形验证码是官方飞信服务器需要的,不是我程序的行为。不信的话,可以自己去抓包分析。请不要在论坛上抗议图形码的事情,要抗议,打10086去抗议。飞信机器人命令行版本永久免费使用。移动发布公告():11月20日之后,将停止3.5及以下版本飞信的支持。特此发布新版支持V4协议的机器人程序,请使用原09版机器人的朋友迅速测试并升级。新版飞信机器人版本号起于 ,凡之前版本的飞信机器人,11月20日之后将不能使用。1. 遇到输入图形验证码时,自动生成图形验证码,用户可以手工输入识别后的验证码(解决之前的422问题,识别及输入方法见Q&A)。2. 可以设定遇到图形验证时的行为,退出( --exit-on-verifycode=1)或者手工输入(当机器人后台执行时,如果等待输入将导致程序无限期等待)3. 第一次运行时将缓存配置数据(文件名:登录账号.cache),之后运行自动加载缓存,提高发送速度。4. 集成推立方()短信发送协议,发送到联通、电信手机或遇飞信服务器不可用时,可以直接使用本客户端进行发送(注:该服务为收费服务,详细情况请见:&)和下载以往版本一样,先回复后下载噢。&& 安装 &&& & 本程序为绿色程序,无需安装,下载解压后即可使用。& &&1. 根据您的需求,分别下载附件中的windows或者linux版本的机器人主程序(回贴后才能下载噢,请别嫌麻烦),解压(注意:主程序所在目录的路径中不要存在空格,如& &c:\Program files\... 这样的目录)& & 下载:& &以下内容需要回复才能看到windows版本:&&&(156.81 KB)&&&linux版本:&&&(491.63 KB)&& &&2. 下载机器人支持库(使用机器人以前版本的朋友可以直接忽略),把压缩包中的文件解压到主程序相同的目录& & windows 版本:& & linux版本:&(在Redhat4 下编译,其它LINUX发行版的朋友请测试)& & linux64位(centos5.4)版本:&&(感谢QQ“走過你的風”网友提供。Centos5.4 64位linux系统下,如果用上面提供的linux版本动态库,会提示Segmentation fault,程序异常退出)& & (为何分开下载?因为机器人主程序经常更新,而支持库不会更新)& &注意:linux用户,请不要把支持库中的 lib* 复制到 /usr/lib 下,因为发行版本不同,可能会覆盖您机器中的核心库,导致严重系统问题。您可以把库解压到主程序的相同目录,然后以 LD_LIBRARY_PATH=. ./fetion 来运行)&& 使用说明 &&& &&&以下参数提供登录用的账号密码(三种方式,手机号-密码 飞信号-密码 文件--索引)& &&& & --mobile=[手机号]& && & 登录手机号& & --sid=[飞信号]& && &&&登录飞信号& & --pwd=[密码]& && && &登录密码& & --config=[文件名]& && & 存储手机号、密码的文件。& & --index=[索引号]& && & 索引& & 以下参数提供接收者& & --to=[手机号/飞信号/URI]& &接收消息的手机号/飞信号/URI.如果知道对方URI,则只需自己在对方好友列表,无需对方在自己好友列表就能发送。& && && && &支持多个号码,中间用,逗号分隔& & --msg-utf8=[信息]&&& &&&发送的消息,UTF8编码& & --msg-gb=[信息]&&& && &发送的消息,GB编码& & --file-utf8=[文件utf8格式]& && &发送文件内容& & --file-gb=[文件gb格式]& && &发送文件内容& & --msg-type=[0/1/2]&& && &发送消息类型:普通消息 长消息 智能短信& &&&小工具& && &&&--query-cmcc-no&&查询移动公司手机段& &&&以下为可选项& & --debug&&& & 显示调试信息& & --hide& &&&& & 隐身登录& &&&--exit-on-verifycode& & 服务器需要进行图形验证时,程序退出(1)或者等待用户手工输入识别信息(程序默认)& & --proxy-ip=http代理ip& & --proxy-port=http代理端口& & (机器人需要&&HTTP&CONNECT代理,大家常用的 ccproxy 是支持的)&& 举例 &&& &&以下为 windows 下举例:& & fetion --mobile= --pwd=mypwd --to=137xxxxxxxx --msg-gb=测试& & fetion --sid=6630321 --pwd=mypwd --to=137xxxxxxxx --msg-gb=测试& & fetion --config=sample.conf --index=1 --to=137xxxxxxxx --msg-gb=测试& &&linux下,请使用如下命令:& & LD_LIBRARY_PATH=. ./fetion --mobile= --pwd=mypwd --to=137xxxxxxxx --msg-utf8=测试& & LD_LIBRARY_PATH=. ./fetion --sid=6630321 --pwd=mypwd --to=137xxxxxxxx --msg-utf8=测试& & LD_LIBRARY_PATH=. ./fetion --config=sample.conf --index=1 --to=137xxxxxxxx --msg-utf8=测试&&& & 发送消息中如果需要换行,请用 \n&&&// 以下为 sample.conf 内容,文件内容中, #号为注释行&&&# This config file is for fetion robot tool.& &# Usage demo: ./fetion --config=/etc/fetion.conf --index=1& &# ID Mobile&&Password& &1&&137xxxx&&1234234使用推立方收费短信服务:&&fetion --mobile=接收人手机 --t3key=推立方APIKEY --msg-gb=gbk编码的发送内容( 或者 --msg-utf8=utf8格式的内容 )&&推立方APIKEY:到推立方官方网站()注册会员(注册成功后,赠送10条短信),进行产品配置,则可以获取该KEY。新版提示:1. 使用复杂的密码(数字+字母+符号),将不会弹出图形验证码(我测试时是这种表现)。2. 第一次使用机器人时,即使是复杂密码,也可能会弹出图形验证码,以后将不再提示。3. 如果您是使用其它程序调用本程序,请在运行时,指定--exit-on-verifycode=1,否则,程序将无限期等待。当您以该参数运行机器人时,当弹出图形验证码时,程序将以退出码29结束( 在 linux 中,通过$?获取,在 windows中,通过 %ERRORLEVEL% 获取)4.&&请确保目录权限可写补充Q&A:1.WIN2003不能使用:感谢32楼lvjinhua提供的解决办法“win2003不能用的问题,安装 vs2008 sp1的vcredist_x86.exe() 就好了!”2.运行时显示的中文乱码:程序运行时,LINUX环境以UTF8编码输出,WINDOWS环境以GBK编码输出,请注意您使用控制台的编码方式。另外,即使中文乱码也不影响您的使用,那句话的提示就是让您打开 图形文件,输入图片识别码。3.WINDOWS下密码中如果有特殊字符如何输入,比如&|: 请用 ^ 进行转义,如密码中有 &,请输入 ^&4.输过一次验证码以后,以后还会再要求输入吗?目前的表现是这样(如过一次,再登录就不会输入),但不保证以后移动飞信服务器修改验证规则以后,会不会再强制你输入(比如飞信服务器认为你的账号有异常,或者你的账号频繁登录、频繁发短信)。5.如何输入图片验证码?因为飞信机器人是控制台程序,无法显示图片,所以,请把生成的图片用查看图片的办法打开后进行识别。如果您的环境是在linux下,并且没有X环境,那么您可以把图片下载到WINDOWS机器中查看。人工识别后,把识别后的内容输入即可。6.494错误:发送U到12520,就可以解除受限。更新日志::支持服务模式:FIXBUG:某些环境下,不能获取图形验证码,提示:getpiccodev4 return&error&xml(感谢网友QQ五斗米的协助):支持飞信最新V4协议初始版本服务模式开发使用指南在服务模式下,飞信机器人将长期在线,可以用来构造交互性的机器人应用。具体演示可以加蓝色理想网站飞信机器人:。服务模式运行方法:fetion --mobile=手机号 --pwd=密码fetion --sid=飞信号&&--pwd=密码服务模式支持电子邮箱注册的飞信号码服务模式开发使用资料导航:1.飞信机器人服务版配置视频教程:& & (该视频教程为windows版本,linux版本和此类似)2. 飞信机器人框架配置指南:3. 自带演示框架数据库说明及操作指南(PDF):&4. 插件原理:5. 机器人PHP框架及数据库SQL文件:6. 控制指令集:7. 事件插件:8.蓝色理想飞信机器人WIKI:服务版本未授权的用户使用时,有如下限制:1、不支持加好友请求事件(handle_contact_request)2、不支持删除指令(buddy-delete)3、不支持获取好友信息指令(contact-info)4、发送消息时,后面有网站信息新版变化:1、新版插件第一个参数传递的飞信号码(以前传递的是手机号,由此带来的问题是:如果还是用原来的框架,那么生成的cmd文件,前面是飞信号。但是飞信机器人主程序认的命令文件是 手机号_id.cmd, 所以,请修改相应代码,把飞信号换成手机号)2、handle_contact_request,传递的userid(之前是uri)3、buddy-delete 使用 userid4、accept_contact_request: 使用 userid5、buddy-data: 新增加一个字段:carrier-region,例如:CN.bj.10.升级注意事项:1、以前使用飞信机器人服务版框架的朋友进行升级时一定注意:因插件的第一个参数由以前的手机号改成了飞信号, plugin_buddy_data 中一段代码需要删除,否则会造成好友等几个数据表清空。2、V4协议中,用户所属城市信息由以前的 省+市 改成了 carrier-region ,plugin_buddy_data 中的 province&&和 city 不在有效
标准C++中的string中的函数不多,没有CString的功能强大,但是如果想在Unicode编码下使用多字节,就不能使用CString,于是自己写了一个类似于CString的Replace函数。string replace( const string& inStr, const char* pSrc, const char* pReplace ){&&&& string str = inS&&& string::size_type stStart = 0;&&& string::iterator iter = str.begin();&&& while( iter != str.end() )&&& {&&& &&& // 从指定位置 查找下一个要替换的字符串的起始位置。&&& &&& string::size_type st = str.find( pSrc, stStart );&&& &&& if ( st == str.npos )&&& &&& {&&& &&& &&&&&& &&& }&&& &&& iter = iter + st - stS&&& &&& // 将目标字符串全部替换。&&& &&& str.replace( iter, iter + strlen( pSrc ), pReplace );&&& &&& iter = iter + strlen( pReplace );&&& &&& // 替换的字符串下一个字符的位置&&& &&& stStart = st + strlen( pReplace );&&& }&&&}上述方法在执行replace( "h h h h h h h h h h h h h h h h h h h ", " ", " " )时出现问题。下面再列出一种方法:string CComFunc::replace( const string& inStr, const char* pSrc, const char* pReplace ){&&& string strSrc = inS&&& string::size_type pos=0;&&&&&& &&& string::size_type srclen = strlen( pSrc );&&&&&&& &&& string::size_type dstlen = strlen( pReplace );&&&&&&& &&& while( (pos=strSrc.find(pSrc, pos)) != string::npos)&&& {&&&&&&&&&&&&&&& &&& &&& strSrc.replace(pos, srclen, pReplace);&&&&&&&&&&&&&&& &&& &&& pos +=&&&&&&& &&& }&&& return strS}补充,经过测试,上面方法再执行,replace( “暴”, "\\","==" )时,依然会遇到问题。在日文系统上,因为“暴”占两个字节,而"\\"只占一个字节,但与“暴”的低位字节ASCII码相同。而string的Find函数,是按照字节比较的,所以,将这个字节替换了,导致文本替换出现问题。于是考虑到不应该按字节比较,应该按字符比较,测试发现,CString的替换函数没有问题,于是考虑按照CString的方法重新写一个replace函数。代码如下:因为CString在_MBCS和_UNICODE下是变宽的,而我写的replace函数,只针对string。string CComFunc::replace( const string& inStr, const char* pSrc, const char* pReplace ){&&& string strSrc = inS&&& LPSTR lpch = ( CHAR* )strSrc.c_str();&&& int&& nOldLength = strlen( lpch );&&& int&&& nSourceLen = strlen(pSrc);&&& if (nSourceLen == 0)&&& {&&& &&&&&& }&&& int&& nReplacementLen = strlen(pReplace);&&& LPSTR lpszStart =&&& LPSTR lpszEnd = lpszStart + nOldL&&& LPSTR lpszT&&& // 先列出判断替换字符是否存在的方法, 但在此函数中不使用这段代码。/* &&& // judge whether exist&&& while (lpszStart & lpszEnd)&&& {&&& &&& while ((lpszTarget = (CHAR*)_mbsstr(( const unsigned char * )lpszStart, ( const unsigned char * )pSrc)) != NULL)&&& &&& {&&& &&& &&& nCount++;&&& &&& &&& lpszStart = lpszTarget + nSourceL&&& &&& }&&& &&& lpszStart += strStart.length() + 1;&&& }&&& *//&&& &&& // 下面是替换的代码。&&& while (lpszStart & lpszEnd)&&& {&&& &&& while ((lpszTarget = (CHAR*)_mbsstr(( const unsigned char * )lpszStart, ( const unsigned char * )pSrc)) != NULL)&&& &&& {&&& &&& &&& int nBalance = nOldLength - (lpszTarget - lpch + nSourceLen);&&& &&& &&& memmove(lpszTarget + nReplacementLen, lpszTarget + nSourceLen,&&& &&& &&& &&& nBalance * sizeof(CHAR));&&& &&& &&& memcpy(lpszTarget, pReplace, nReplacementLen*sizeof(CHAR));&&& &&& &&& lpszStart = lpszTarget + nReplacementL&&& &&& &&& lpszStart[nBalance] = '\0';&&& &&& &&& nOldLength += (nReplacementLen - nSourceLen);&&& &&& }&&& &&& lpszStart += strlen(lpszStart) + 1;&&& }&&&}此方法最关键的是_mbsstr函数,在"MBSTRING.H"头文件中声明。
共9页:&&2&&&&&&&&}

我要回帖

更多关于 鸟人到底会不会飞 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信