Learn day by day, keep accumulating, and compose my Python growth history-related to environment construction

af4836f6655576e30feb3f97aea29d4e.png

Even though my Python study notes may be a little delayed, I will definitely keep recording my learning process. Although my learning progress may be a little slower than expected, and the article may be slightly delayed, my enthusiasm for learning Python will never fade. My attitude towards learning Python has always been the same, even if the timing didn't go my way. Here, I want to record some new gains I have gained after watching the video in the past few days. Just a simple first article:

1. Learned to view documentation information in pycharm

The shortcut key Ctrl + Q, press it several times, and a fixed area will be displayed on the right menu, which is convenient for viewing the corresponding source code

1e3e04896676322199d8f9e89a0e2f82.png

2. Identifiers in python can only use letters, numbers and underscores. This sentence is incorrect.

In addition to letters, numbers, and underscores, identifiers can also use characters in Chinese and some Unicode character sets, but system keywords cannot be used.

3. How to check which system keywords are in python?

import keyword
print(keyword.kwlist)

output:

['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']

Things like int and str are available:

int = 10
print(int)


str = "我的公众号是:小博测试成长之路,欢迎大家关注"
print(str)

Next, mention a few details to see if you have mastered them:

  • Run a python script using the command line

  • Do you know how to play in the interactive python environment?

  • Do you know how to install multiple versions of python on the computer and configure the environment variables yourself, requiring that you can quickly switch between different versions of python

  • Find out which directories are currently installed in the system python

  • When pycharm creates a project, what is the difference between using a virtual environment and not using a virtual environment

The next study notes will be output after watching the video. Welcome to pay attention to the official account and study together~. V: xiaobotester.

After each note article is published, I will simultaneously post the article on Knowledge Planet for check-in. Friends in the group can reply and discuss below, and express their different opinions or gains~

Guess you like

Origin blog.csdn.net/liboshi123/article/details/130355733