Objective
Before you write a script, find a handy scripting tool. Python is an explanatory programming language, so the Python-writing tool is generally called an interpreter. Python script to write a lot of tools, small part of this is not listed here, as long as their own handy can, if you have not selected the interpreter, small pycharm recommended here.
After installing the pycharm, there are some small partners will not crack, here the small part or recommend you buy a genuine. Of course, if you do not want to pay, want to crack pycharm, it is also very easy to do, here are a few ways to enumerate several methods. If you want to download the Pycharm installation package first, the installation package can go to the official website http://www.jetbrains.com/pycharm/Download the latest version.
Method One:
1. On the registration screen, select License serve. Fill in http://idea.lanyus.com/
2. Click OK
Method Two:
1. Registration Interface selection: Activation Coede
2. Open the URL: http://idea.lanyus.com/71, click on the "Get Registration Code" button
3. Copy the registration code for the popup box
4.copy to registration interface activation Coede location
Method Three:
1. Install pycharm do not move in the registration screen first
2. Adjust the computer system time to 2036 (20 should be enough).
3. Registration interface Selection Application 30 days trial
4. Exit Pycharm
5. Computer time adjustment back.
Method Four:
1. Install Pycharm in the registration screen, choose to use 30 days
2. Open the Pycharm menu Help>register
3. Open the URL: http://idea.lanyus.com/71, click on the "Get Registration Code" button
3.copy to registration interface activation Coede location
Let's start Pycharm tour
First, the new project
1. Create a new test folder on drive D
2. Open the upper left corner of the Pycharm file button
3. Point new Project to create a new project
Second, the new script
1. Right-click on the left menu tree of Pycharm and create a new directory (folder).
2. Select the corresponding folder and create a new Python file (script) in the folder.
3. The script name itself is named, suffix. py automatically takes out
Three, start programming
1. Double-click to open the script you want to write
2. In the edit box on the right, enter: print ("Hello world!")
3. Click the title of the script and select Run "test01" after right click to run the result as follows
Selenium2+python Automation 4-pycharm Use