In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
What are the 30 operational difficulties of python? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Life is short, I use Python, I do not know from when, this phrase began to be popular.
Python has been at the top of the list of popular programming languages for many years. It can be applied to almost any development, and it aims to improve the development efficiency of programmers, not in the code they write. Python is suitable for website, desktop application development, automated scripts, complex computing systems, scientific computing, life support management systems, Internet of things, games, robots, natural language processing and many other aspects.
Moreover, even for those who have no development experience, Python's code is simple and easy to understand.
Because the Python program code is simple, compared with other program languages, the later program maintenance is easier and more comfortable. From a business point of view, costs are reduced and programmers are more efficient.
In the past few days, I have read most of the information about Python on the Internet, many of which are only the most basic, and there are many difficult problems, such as data analysis when the data is so large that it can not be solved by one person, as well as artificial intelligence, semantic analysis and so on.
Summary of difficulties in Python operation (personal practical experience sharing)
During the period when I was studying Python, I summarized my 29 questions, as follows:
1. Switch between cmd disk and disk directly D or d: just fine
2. Find the directory under the current disk or file directly dir
3. If you want to enter a folder under a disk, use the cd space object file cd p
4. Press tab to complete automatically after writing the first letter of the file. If there is more than one p, pressing tab will switch between all.
5. D: cut dir to find the directory cd into the target file (equivalent to double-click)
6. Go up one floor, cd.. Walk two floors of cd.. /. (with or without spaces in between)
7. Open a pre-typed txt with python, then open the code python f:\ Demo\ hello.txt first.
8. what kind of file it is, you have to use what type of suffix.
9. It is troublesome to find the path of python every time you run. If you add python to the environment variable, you can call the program directly. My computer-- Properties-- Advanced system Settings-- Advanced-- Environment variable-- find path-- and add the path of python.
10, add any program to the environment variable right-click the program icon-- Properties-- copy the 'target'-- add the target to the path (; semicolon must be in the English state, and then copy, not all copy, cut down the .exe string), open cmd, enter paste, and you can open the program.
11. The details of variables should be descriptive. For example, mike is a name name='mike' that makes people know at a glance that it is a name.
12. Variable naming when two words can be separated by an underscore _ student_number
Use all uppercase variable names to represent constants.
14. If the string is wrapped in quotation marks, it will occupy a place in memory, but the variable name will not. It points to the string in memory.
15. Del delete the variable del age to manually disassemble or point to other memory
16. If you want to print Chinese in py2x vision, you need to add 'upright' in front of it to change the type to unicode universal code.
17. Notepad++ copies the current line ctrl+D
18. After changing on notepad++, you must save it in cmd in order to run correctly.
19. Find the file path in cmd and use the tab key to complete. Under each disk, you can type pathon to run the program directly, and then use tab.
20. Input ('str') then str: this constitutes interaction
21. The number of error lines in cmd corresponds to notepad++.
22. There is a line operation in pad, and the cursor should be at the end of the line (end) or on this line
23. If the judgment is equal, it is assigned.
24. After each sentence, add: it means that the sentence is over.
Determine which code to execute by indenting
25. Tab! = (not equal to) 4 spaces
26. Else cannot appear alone. It must be at the same level as if. It cannot have the same level in the middle.
27. It is best to automatically change each tab into 4 spaces (the original tab is different from 4 spaces, you need spaces, and you want tab to tab, but tab is not officially recommended), and tabs set preferences for tab pad++ to convert tabs to spaces.
28. View display symbols display spaces and tabs
29. Elif as a variety of conditional discriminants between if and else
The answers to the 30 operational difficulties of python are shared here. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.