ΪʲôҪѧϰPythonӿڲʵս⣨1

ڣ2021-5-14 09:26  ߣӿ ַ   Դ51Testingԭ

С | һƪ | һƪ |ҪͶ | Ƽǩ Python

1
1.1  ΪʲôҪѧϰPython
Ϣķٷչҵڹ񾭼аԽԽҪĽɫиҵҪҲԽԽߡܲܲӿڲԸ߿Կܿȷ棬һűǷdzбҪġĿǰеıкܶ࣬JavaCC++C#PythonRubyPerlPHPDelphiȣЩԣDzЩۻңԱӦѡأһѡPythonԵ4ԭ

1PythonĿǰеı֮һ
ȫıTIOBEͳϢ20203±аPythonΪ3JavaCԣͼ1-1ʾܶ߿֪ܲTIOBEа񣬸ٶٿƣTIOBEаÿ¸һΣݵ緶Χڵʦ͵ӦṩݣΪжϵǰҵڳ򿪷Եг̶ȵЧָꡣָ⿪ߵı̼ܷƣжǷбҪսԸı䣬Լ˽ʲôӦüʱյġ
ͼ1-1  20203µıа

2PythonӦڸиҵչǰ
PythonԱĿԱΪ͡õءΪPythonṩWebԪȿܣṩ˷ḻģ飬Щģ鸲ùѧ㡢վݽṹݷȷķḻAPIƵĴ⸲ͨšļݿӿڡͼϵͳXMLݣʹ߿׾ٵؽAPIĵáPythonѾ㷺Ӧ˹ܡҵPythonԹ㷺Ӧã˸ƽ̨ͨṩ˶PythonԵ֧֣֧áṩϸĵ÷˵ʾȡ
԰ٶƲƷΪʰٶƹѡ񡰲Ʒ˹ܡԿٶṩ˹ܷԴͼ1-2ʾ
ͼ1-2  ٶṩ˹ܷԴ

ǶʶdzȤʶ𡱰ťʾͼ1-3ʾĽ档
ͼ1-3  ʶ𡱽

ĵťͼ1-4ʾϢ
ʶ Python SDKӣֹʶPython SDKġӿ˵Ϣͼ1-5ʾ
ͼ1-4  ٶĵϢ

ͼ1-5  ʶPython SDKġӿ˵Ϣ

ͨ顱šӿ˵͡Ϣ˽ٶṩʶPython SDKϢӦģİװAPI˵ӿֶε˵ķֵϢԼһЩӿڵ÷Python롢ϢɶзdzݽڻεЩӿڣνнӿڲԣPythonаװٶƣṩģݡ

3PythonԼѧ
Python﷨򵥶ܹ󿪷Աرı̰ߣϲΪСѧɱԣPythonӦǿԱȺܵıԡ
ͨѧϰһűԵʱ򣬱дĵһǡHello,?WorldǾͷֱ4Hello,?WorldԱһԸӼ򵥡׶
ͨJavaʵֵĴ¡
public class HelloWorld {
   public static void main(String[] args) {
      System.out.println("Hello, World");
   }
}

ͨDelphiʵֵĴ¡
program HelloWorld;
{$APPTYPE CONSOLE}
uses
  SysUtils;
begin
  write('Hello, World');
end.

ͨCʵֵĴ¡
#include <stdio.h> 
main() {
   printf("Hello, World");
}

ͨPythonʵֵĴ¡
print('Hello, World')

ͨԱ4ֲͬԵʵַʽѷPythonǺܼ򵥵ġ

4PythonԵĴҵӴ
ÿ˶ϣԼһõְҵչڲԱԼδļʮ꣬ӿڲԡԶԿɶDZȽǰְҵչ
ǿԷǰǹһĿǰҵPythonԱPythonԱΪ롰Pythonťͼ1-6ʾͼ1-6Կ6491ְλϢ130ҳݡDzѿЩְλϢУ漰PythonPythonάԹʦԼPythonĿְλڱҪԲԱѡһԿλ忴һҵҪ
BOSSֱƸоŲԿλƸϢͼ1-7ΪǿԿصְʸҪһǡϤһԡJavaPythonShellGoԡ
ͼ1-6  ǰǹPythonĽϢ

ͼ1-7  ԿλƸϢ

һӿڲԹʦĸλְҪͼ1-8ʾ
ͼ1-8  ӿڲԹʦĸλְҪ

ͼ1-8УͬԿӿڲԹʦPythonԵҪͬʱԿSoapUIPostmanJMeterȹߵҪԼԽӿڲԷܴSQLLinuxϵͳȷҪٿƸλнʴDzͦˣ뵽ԼĿǰԽӿڲPythonȫ˽⣬DzֺżأûйϵֻҪ㰴ձѧϰһԳΪһĽӿڲԹʦ

Ȩ51TestingʵȨر鲿½ڡ
κθ˻λδȷɣöԱݸơתػо񣬷׷Ρ

̳



ʹIE 6.0800×600ϷֱʣɹʣϺʦ ʦ
Ȩ ϺΪɷ޹˾ Copyright©51testing.com 2003-2021, ICP05003035
Ͷ߼webmaster@51testing.com; ҵϵservice@51testing.com 021-64471599-8017

31010102002173

51Testingٷ΢

51Testingٷ΢

ɨһɨ ֪ʶȫ֪