A report on the experiment of "Python Programming"

20191322 Wu Yonglin "Python Programming" Experiment Report

Course: "Python Programming"
Class: 1913
Name: Wu Yonglin
Student ID: 20191322
Experimental Teacher: Wang Zhiqiang
Experiment Date: April 11, 2020
Compulsory / Elective: Public Elective Course

1. Experimental content

  • Familiar with Pycharm and other development environments;

  • Master basic Python running and debugging skills;

  • Master basic Python programming skills.

  • Program code hosting to Code Cloud

2. Experimental process and results

Familiar with python development environment

  • IDLE (you can find it in the python folder at the beginning)


IDLE is a development and learning environment that comes with Python. It has two main window types, command line window and editor window. You can enter the code directly in IDLE to execute, you can also create a file editor window to save and then execute, or directly open the py file to execute. (The shortcut key for creating files is Ctrl + N, remember to save)

  • Pycharm

With coding assistance, project code navigation, code analysis, Python refactoring, Django support, Google App engine support, integrated version control, graphical page debugger, integrated unit testing, customizable & extensible and other functions.

Master basic Python running and debugging skills (taking pycharm as an example, IDLE has already mentioned above)

  1. New Project File-> New Project
  2. Enter the project name (such as Demo), path, and select python interpreter. If the python interpreter does not appear, go to step 3
  3. Select the python interpreter. It can be seen that once the python interpreter is added, pycharm will scan out the python extension packages you have installed, and the latest versions of these extension packages. (It is estimated that pycharm is connected to pypi)
    When you want to choose again, you can also use Settings-> project Interpreter to set.
  4. After clicking OK, an empty project will be created, which contains a .idea folder for pycharm to manage the project.
  5. carry out

Master basic python programming skills

Program code hosting to Code Cloud

1. Find the code file that needs to be managed, right-click git, commit

2. Push

3. Success

3. Problems and solutions encountered during the experiment

Problem: push failed

Solution

The first method:

git pull
git pull origin master
git pull origin master –allow-unrelated-histories

The second method:

git pull origin master –allow-unrelated-histories
git push -u origin master -f

4.impression

To make good use of search engines, Baidu is the best teacher

5. Reference materials

Two ways to solve push failed

Guess you like

Origin www.cnblogs.com/BillGreen/p/12679214.html