best way to learn python for non programmer

Want to know best way to learn python for non programmer? we have a huge selection of best way to learn python for non programmer information on alibabacloud.com

. NET Programmer's Python basic tutorial learn----lists and tuples [first day]

','Vincent','Tingna']>>> Names.pop ()#most one element is deleted'Tingna'>>>names['Frank','Lock','Hardy','Vincent']>>> Names.pop (0)#kick out the first element'Frank'>>>names['Lock','Hardy','Vincent']>>> Names.reverse ()#reverse Order>>>names['Vincent','Hardy','Lock']>>> Names.sort ()#从小到达>>>names['Hardy','Lock','Vincent']>>> Names.sort (Key=len)#Sort by length>>>names['Lock','Hardy','Vincent']>>> Names.sort (reverse=true)#从大到小>>>names['Vincent','Lock','Hardy']Three. Tuples immutable sequencesWi

Learn Python the hard Way-python installation under Windows and Linux

1.Windows under Installationhttps://www.python.org/downloads/download the appropriate version for installationNote: Add the Python installation path to the path path of the system environment variable to enter Python into the python environment under the command-line window 2.Linux installation tar.bz form TAR-ZJVF Compressed package c. Enter the u

How to learn Python in a systematic way?

. Therefore, in every day to do the project at the same time, must ensure that a certain amount of time, bad to fill the theoretical knowledge. This part of the book in the watercress and know that there are a lot of summary, you can search by themselves.2) Don't be too tangled up with meaningless questions, such as what frames are good, XX language is better than XX language. Pre-determined the practiced hand project, to concentrate on the accumulation of code volume, accumulate the basic knowl

The way to Big data processing (10 minutes to learn Python)

(0) FolderHigh-speed Python and error-prone (text processing)Python Text processing and JAVA/C10 minutes Learn the basic types of PythonHigh Speed Learning Python (actual combat)The way to Big data processing (10 minutes to learn

Python script--a way to connect to a MySQL database (retrieve data as list non-tuple format) and write data to TXT

Python connects to the database there are several methods, but for the data retrieved from the database format is somewhat different, back to the tuple format of data processing is more troublesome, next introduced a back to the list format of the connection method, list format data processing and use is more convenient.#!/usr/bin/python#-*-Coding:utf-8-*-#!/usr/bin/env pythonImport MySQLdbFrom commands imp

Stupid way to learn Python (36)

find a problem with the map, adjust the map so that the code and the map match each other.One last suggestion: Every programmer will be influenced by irrational fears when they start a big new project. In order to avoid this fear, they will stall time and end up doing nothing. I sometimes do that, everyone has this experience, the best way to avoid this situation is to make a list of what you want to do, o

Stupid way to learn Python (34)

sentence in such a format: "The 1st animal is at 0 and was a bear." And then read upside down: "The animal at 0 are the 1st animal and is a bear."Use Python to check your answers.Bonus points Exercise Search the Internet for knowledge of the ordinal number (ordinal number) and cardinality (cardinal number) and read it. With your understanding of these different types of numbers, explain why "January 1, 2010" is 2010 instead of 2009? (Hin

The best way to learn Python's little white

-- example demonstration ---- knowledge supplement -- Way to teach. Knowledge points will only gradually increase, a ring set a ring, to ensure that everyone can understand, not only for beginners, penetration testers can also learn from the relevant knowledge of infiltration! At the same time use python3.6 to write security tools to meet the language version of the requirements! well above is the recomm

Stupid way to learn Python (3)

Exercise: Your first website Exercise: getting input from the browser Exercise: Create your Web game Select a project, read through its documentation and easy tutorials. During the reading process, write the code in the document yourself and let them operateYes. I learned this way, in fact, every programmer is doing so. After reading the tutorials and documentation, try writing something.Come out. Write an

How to learn Python in a systematic way?

hand and make sense of why.2. To find a practical project practiced hand. The best thing is to have a real project to do. Can find a few classmates together to make a website and so on. Note that real projects are not necessarily commercial projects.3. It's a good idea to find someone who already has python. Ask him a little bit about the idea of learning to plan (it's also a way), and then find him in a j

Stupid way to learn Python (26)

exercises 24 and 25 into a file, deleted some of the characters at random, and then added some bugs in. Most of the error is that Python will tell you when it executes, and there are some arithmetic errors you want to find out for yourself. All that's left is formatting and spelling mistakes.All of these errors are easily made by programmers, even if experienced programmers are no exception.Your task is to modify this file correctly and use all your

Stupid way to learn Python (10)

mistaken. You need a way to tell that the double quotes inside the Python string are not true double quotes.To solve this problem, you need to escape the double and single quotes, and let Python enclose the quotation marks in the string. Here's an example:The second method is to use "three quotation marks (triple-quotes)", or "" ", you can put any number of line

What is the way to learn python?

With the rapid development and progress of Internet technology in China and abroad, Python has been used in the fields of automated operation and maintenance, automated testing, financial quantification strategy analysis, data analysis, crawler development, web site development, scientific computing, and the gap of Python programmers on the market. It also prompted many people to start learning

Stupid way to learn Python (25)

are using the functions defined in module ex25 . Try to do help (ex25) and help (ex25.break_words) . This is how you get the module help documentation. The so-called help document is what you put in the "" "when you define a function, and they are also known as documentation comments (document annotations), and you'll see something more like that later. Type ex25 repeatedly. It's a very annoying thing. A shortcut is to import the module using the from ex25 import * method. It's equiv

Stupid way to learn python (i)

of the error message into the search engine, and you can see that others have encountered such errors, and you may be able to find how to solve the problem.WarningIf you are from another country and you see an error about ASCII encoding, add this line at the top of your Python script: # -- Coding:utf-8- -This allows you to use Unicode UTF-8 encoding in your script, and these errors will not occur.Bonus points ExerciseYou will also have a bonus point

Stupid way to learn Python (exercise1-15)

,%r tall,and%r heavy. "% (age,height,weight)#exercise12 prompting othersY=raw_input ("Name?") #这句话会用 "Name" prompts the user and assigns the result of the user input to the variable Y.#这就是我们提问用户并且得到答案的方式.Age=raw_input ("How old is You?")Height=raw_input ("How Tall is You?")Weight=raw_input ("How much does you weigh?")Print "So" is%r old,%r tall,and%r heavy. "% (age,height,weight)#exercise13 parameters, unzip, variableFrom sys import ARGVScript, first, second, third = argvPrint "The script is cal

Stupid way to learn python (0)

"Save as ..." option, and then select this directory.12. Use the keyboard to switch back to the Terminal window, if you do not know how to use the keyboard switch, you can search the Internet.13. Go back to Terminal and see if you can use the command to see your newly created file, Internet search How to list the contents of the folder.Warning Sometimes you'll miss out on this step:Windows has Python but no path is configured correctly. Confirm that

Stupid way to learn Python (21)

return function, try writing a few functions yourself to get them to return some values. You can put anything that can be placed on the right side as the return value of a function. The end of the script is a puzzle. I use the return value of a function as a parameter to another function. I link them together, just like I write math equations. It may be a bit hard to read, but you'll know the result if you run it. Next, you need to try to make the same function as the expression in the nor

The way to Big data processing (10 minutes to learn Python)

fo = open ("./tmp/foo.txt","w+") Fo.write ("Python is a gerat language.\nyeah its great!! \ni am Zhang Yapeng, who is you?\n ") t_str = u' I am Zhang Yanpeng, what are you? ' Print (T_STR) Fo.write (T_STR) Fo.close () #read and Write FR = Open ("./tmp/foo1.txt","r+") FW = Open ("Foo_rw.txt","WB") Done = 0; LocalTime = Time.asctime (Time.localtime (Time.time ())) Print "Local Current time:", LocalTime Fw.

Stupid way to learn Python exercises 13 and 14

. - - """% (like, age)The results are as follows: (performed under PowerShell)Ps:1. Pydoc in Windows usage, must go into the Python installation directory, execute python-m pydoc raw_input; (Of course you can replace the raw_input with other modules, such as Open, OS,)Here is the exercise code for Exercise 14:1 fromSysImportargv2 3Script, user_name =argv4prompt ='>'5 6 Print "Hi%s, I ' m the%s script."%(u

Total Pages: 5 1 2 3 4 5 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.