Here is a the python way of saying “Happy Mother’s Day”
Let’s put these code in pycharm and run it for Mom.
first one can run on trinket.io
motherday1.py
print('\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(12, -10, -1)]))
Then, we need add some color for this heart. Since we are import modouls, following program can only run in pycharm. If you want to know how to download pycharm, please check on this link Python environment guide [Pycharm IDE] .
motherday2.py
import colorama RED = colorama.Fore.RED + colorama.Style.BRIGHT print(RED+'\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(12, -10, -1)]))
If you receive error on missing module colorama, you know there are 2 ways to install this module as we tought in class. one way is : pip3 install colorama
Next, add more colors , flowers, sleep delay, random space in left, and loops with dynamic colorful result
# Print header for i in range(1, 35): print('') # *s position heartStars = [2, 4, 8, 10, 14, 20, 26, 28, 40, 44, 52, 60, 64, 76] # Position of space heartBreakLines = [13, 27, 41, 55, 69, 77] # Empty column position of rose flowerBreakLines = [7, 15, 23, 31, 39, 46]
# add new column def addSpaces(a): count = a while count > 0: print(' ', end='') count -= 1
# add new line def newLineWithSleep(): time.sleep(0.3) print('\n', end='')
play = 0 while play == 0: Left_Spaces = randint(8, 80) addSpaces(Left_Spaces) # draw heart for i in range(0, 78): if i in heartBreakLines: newLineWithSleep() addSpaces(Left_Spaces) elif i in heartStars: print(RED + '*', end='') elif i in (32, 36): print(GREEN + 'M', end='') elif i == 34: print(GREEN + 'O', end='') else: print(' ', end='') newLineWithSleep() addSpaces(randint(8, 80)) print(CYAN + "H a p p y M o t h e r ' s D a y !", end='') newLineWithSleep() newLineWithSleep() Left_Spaces = randint(8, 80) addSpaces(Left_Spaces) # draw flower for i in range(0, 47): if i in flowerBreakLines: newLineWithSleep() addSpaces(Left_Spaces) elif i in (2, 8, 12, 18): print(MAGENTA + '{', end='') elif i in (3, 9, 13, 19): print(MAGENTA + '_', end='') elif i in (4, 10, 14, 20): print(MAGENTA + '}', end='') elif i in (27, 35, 43): print(GREEN + '|', end='') elif i in (34, 44): print(GREEN + '~', end='') elif i == 11: print(YELLOW + 'o', end='') else: print(' ', end='') print('\n', end='')
Companies that are driven by technology and use algorithms to make decisions are growing wildly, leaving veteran Internet giants in panic.
Replace people with algorithms, this is happening.
Before we read the news, Alpha Dog Go defeated humans, and AI played Dota to defeat quasi-professional players.
On the one hand, we are worried about being replaced by artificial intelligence. On the one hand, we feel that the day of being replaced is far away: artificial intelligence plays Go, but it is not enough to be productive in many fields.
The premise of “very distant” is: artificial intelligence wants to imitate people, and then surpass people, which is difficult. Because of human emotions, thinking is something that machines can hardly simulate.
Humans are arrogant here.
Because as long as one kind of productivity is more efficient than the old one, then the old one will be replaced.
Algorithms surpass humans, that is, they surpass humans without imitating humans at all.
“Flow” technological change
Regarding the issue of “flow”, there have been three obvious stages in the last 20 to 30 years.
(1) First stop, flooding traditional media
The 1990s were the golden age of newspapers and television media. This is the earliest time when people come into contact with a single medium.
During that time, the media and advertising companies were the most beautiful places. A lot of talents are there.
(2) At the second stop, someone started to think about the scene and experience
Here, the leader will be the product manager. They start to think about “scenes” and “interactions”-I think what users should do in this situation will have a better experience.
They are responsible for thinking: I think users should have a better experience in this situation.
Even, they said: Users don’t know what they want, I’ll define what users want.
Define what the user wants. And it also defines success as genius.
To make products, we must rely on “users think this is better”, but not “I think, users will think this is better.”
So, how do you perceive “user perception”? Three ways:
① Talk to the user.
② As a user, experience it yourself.
③ User behavior data.
Traditional Internet companies make use of ① and ②, and they call this “user research”.
They use “true smart people, all work hard.” To praise excellent product managers. This means that the smarter and more experienced you are, the more you have to walk into users and get to know them.
Otherwise, it is easy to fall into empirical judgment-“I think, users will think.”
And this judgment is often not credible.
This is because the user’s behavior data is not collected enough, not good enough, and the algorithm design is not beautiful enough. They believe that their judgment of eyes and hearts is better than that of data algorithms.
However, the data will get better because it gets better faster than people grow faster.
When it becomes more credible than human experience judgment, we will come to the third stop.
(3) The third station is algorithm-driven.
Design from the aspects of data sampling, data utilization, and algorithm construction.
This is a change:
① Product thinking scenarios and interactions; engineers to implement; users give feedback; return to the first step.
② Engineers design algorithms; engineers request data; product thinking how to get data; product design scenarios and interactions; engineers to implement; data to give feedback; return to a previous step.
Later, we will continue to give examples.
Technological change is happening now
When the algorithm’s ability is getting stronger and stronger, until one day it breaks a threshold, which is the average effect of human work.
Then the algorithm will kill most people’s work in an instant.
And the remaining handful of people will be killed by the algorithm a little bit.
Because the evolution of the algorithm is faster than human learning.
The old productive forces have been replaced by ruin. This kind of thing has happened too many times in human history, especially in recent years.
People started spending online.
Things were gentle at the beginning: some companies began to work harder to recruit algorithm engineers.
Just like now, what is happening.
We have talked about a lot of content in this manuscript, but the core sentence is just one: the algorithm replaces people, and it happens in the present.
If it is replaced, it is an inescapable fate. So as an individual, how should one deal with this matter. -Embrace technology.
To add a case, Netflix.
Maybe you haven’t heard of it, it’s simply the one who made “House of Cards”.
But this company is not simple. In June of this year, its market value was more than 180 billion US dollars, and its price-earnings ratio exceeded 300 times.
Even the same industry, the traditional spoiler Disney, has a market value of $ 168 billion.
This is an explanation of the price-earnings ratio. The price-earnings ratio of general technology companies is tens.
But netflix can reach three hundred.
The meaning behind it is that one side is high risk, and the other side is: it is overvalued by capital, and capital likes it.
So the question is, what business is such an entertainment giant doing?
Netflix was the earliest retailer. Later, it transformed into what it is now.
It shows people, but also makes plays, such as the house of cards.
The difference is that all its users are paid users. It’s just that you have a one-month free trial.
It does a very good recommendation algorithm. Based on what you have seen, based on your preferences, based on your identity information … to recommend content to you.
Now it’s time to talk about what it does with algorithms.
Use algorithms to intervene in content selection and production. Director David Finch once took the adapted playbook of “House of Cards” and found many TV stations in the United States, but none of them dared to pay for it. No one can say whether an old play 20 years ago still has a market.
Netflix conducted a “TV drama consumer habits database” analysis, they found that the audience who likes to watch the 1990 BBC version of “House of Cards” is also a fan of the ghost director of “Social Network” and “Seven Deadly Sins” David Finch, They are also loyal fans of Oscar-winning actor Kevin Spacey. With powerful big data analysis support, Netflix can fully predict the audience and market response, integrate fans of the original “House of Cards” and Kevin Spicer and David Finch fans, and invest in the new version. House of Cards, a hit.
Use algorithms to make interest recommendations.
Netflix has been holding large competitions to recruit talents to improve its data mining processing capabilities. At the end of 2005, Netflix set up a million dollar prize collection algorithm and architecture that can increase the performance of its recommendation system by 10%. In the end, a team of engineers, statisticians, and research experts won a million prizes and successfully increased the recommendation efficiency of the Netflix movie recommendation engine by 10%.
Corresponds to the utilization algorithm. Many times, algorithms are also using people.
People need benefits, and algorithms need data—a large amount of data that is easy to calculate.
Netflix also made a lot of efforts to feed the data to the algorithm.
Infrastructure In 2010, Netflix completed two data migrations, the first was to migrate the Netflix data center to Amazon AWS, and the other was to migrate the Oracle database to SimpleDB. By 2011, it was migrated from SimpleDB to Cassandra. Using the routing configuration provided by Cassandra, the cluster can be deployed on multiple continents.
Modification of product form
They eliminated the five-star scoring mechanism and changed it to good and bad, a single judgment.
They cancel the user comment function.
This is done to make the data cleaner and reduce interference factors.
In the eyes of traditional product managers, this is a bold decision.
But netflix did it because the starting point was different. Netflix needs to organize the data and feed it to the algorithm to allow the algorithm to produce benefits.
They trust algorithms and outperform human judgment.
In beginning of our Python Programming Basic class, we use web version python code you run on trinket. You may ask “How can I run Python code on my computer out of the trinket environment?”. Yes, this is a good question. We learn Python to be used in a real environment on our local computer. Next, let me introduce you to the common methods of building a Python environment. In our later part Python Programming Basic class and Python Crawler Advance class, we use Pycharm as our local python IDE.
PyCharm is a cross-platform editor developed by JetBrains. Pycharm provides all the tools you need for productive Python development. Among many editors, Pycharm is relatively friendly to new users. On the one hand, it will automatically complete the code. For example, if you write the front quotes, it will automatically fill in the back quotes; on the other hand ( More importantly) It will prompt you when the code is written. Therefore, the first article we recommend in the editor recommends Pycharm.
This article is divided into three parts, namely Installing Python, Third-party library installation and Installing Pycharm and use
Below are the detailed steps for installing Python and PyCharm
Installing Python
Step 1) To download and install Python visit the official website of Python https://www.python.org/downloads/ and choose your version. We have chosen currently latest Python version. Click the Download button to enter the download page, there are a variety of versions at the bottom to choose from. We choose the appropriate version according to our system type (32-bit or 64-bit) and click to download, generally we choose executable installer. The differences between the various versions are: embeddable zip file: embedded version, can be integrated into other applications web-based installer: network installation executable installer: executable file (* .exe) installation We selected Windows x86-64 e installer here, double-click to open after the download is complete, you can see the interface as shown below:
Step 2) Once the download is complete, run the exe for install Python.
Note: first check all the boxes. The Add Python 3.8 to PATH circled in the figure must be checked, otherwise ‘python’ will give error after installation. then click Install Now
Step 3) You can see Python installing at this point.
Step 4) When it finishes, you can see a screen that says the Setup was successful. Now click on “Close”.
Step 5) After closing the installation interface, we use the win + r shortcut key to open the run window, enter cmd in the run window, and click the OK button to open the command prompt, which is the command line.
Step 6) Enter python in the command prompt window and press Enter. When you see the version information of Python, you have entered the Python interactive environment. Then we can enter the python code after >>> to execute.
Install on Mac Mac generally comes with Python, but the version is older. Next, let ’s talk about how to install the latest one. Choose one of the following two methods:
Go to the official website to download and install like Windows; Install through Homebrew. If Homebrew is already installed, simply execute in the terminal:
brew install python3
Manually run python program in command line is hard. The more recommended way is to use an editor or IDE to create a py file to write and run code. A good coding tool can greatly improve coding efficiency. Here, we recommend using vscode or pycharm.
Third-party library installation
The reason why Python is so powerful is inseparable from its rich third-party libraries. Next we look at how to install third-party libraries.
Python uses pip to manage third-party libraries. Python 2.7.9 or Python 3.4 and above all come with pip tools, which we can use directly.
First, we open the command prompt window by the method mentioned above, then enter the name of the third-party library pip install and press Enter to start the installation. For example, we want to install the requests library, just type
pip install requests
and then press Enter key to install
It should be noted that the command is entered directly in the command prompt window(or in Terminal window in pycharm). Many students open the command prompt, enter python, and then install the command. This is wrong.
Step 2) Once the download is complete, run the exe for install PyCharm. The setup wizard should have started. Click “Next”.
Step 3) On the next screen, Change the installation path if required. Click “Next”.
Step 4) On the next screen, Check all boxes first, which create a desktop shortcut, associate .py and add PATH. Then click on “Next”.
Step 5) Choose the start menu folder. Keep selected JetBrains and click on “Install”.
Step 6) Wait for the installation to finish.
Step 7) Once installation finished, you should receive a message screen that PyCharm is installed. (After the installation, the computer will be required to restart, select the one above to automatically restart, select the next one to manually restart. choose either one is ok). click “Finish”.
Step 8) Find your new installed PyCharm program on desktop . double click to Open it.
Step 9) After you open Pycharm, you will be asked if you want to enter the previous settings. For the first installation, select “Do not import”
Step 10) Privacy policy, please check if you have no patience, then continue
Step 11) Click Create New Project, or Open your folder. We suggest create a folder on desktop name python, then open the folder python on desktop. In our class, we need to create at least 3 folders under python: python1, python2, python3 for your diffrent levels of python class.
Step 12) If you haven’t create folders in pycharm before, it is easy, Just right click on python folder in left side, select New, then select Directory .
Step 13) type in name of directory , for example, python1, press Enter . Create python1 folder
Step 14) Right click on python1 folder in left side, select New, then select Directory . type in name of 1st class in Python Programming Basic class, 1print function and variables (You can go to 1st Basic class and copy the class name from lemonthy.ca), press Enter
Step 15) Right click on 1print function and variables folder in left side, select New, then select file. type in name of 1st execs in Python Programming Basic class, 101No_quotes.py (You can go to 1st Basic class and copy the exec name from lemonthy.ca), press Enter
Step 16) double click on new file 101No_quotes.py. type your code in 1st class. There are 3 ways to run the code: 1. right click on empty space of code on screen , then select Run 101No_quotes.py . 2. or you can click green triangle run button on top right side of toolbar. 3. you can press shortcut key Ctrl+Shift+F10
The last is our intergrated Anaconda. Anaconda is a large collection that includes Python and its commonly used tools and modules. For beginners, just installing Anaconda is enough! Please google how to install Anaconda . and follow the instruction to install
In a July 2018 mailing list post titled “Power Transfer”, Guido van Rossum wrote:
I don’t want to worry about PEP anymore, and despite the hard decisions I made, I still find that many people are still dissatisfied.
Guido van Rossum screenshot of some emails
“PEP” is a Python Enhancement Proposal. Guido will personally sign and confirm each PEP, which is one reason why he is called a benevolent dictator. In sharp contrast to this, similar improvements to PHP were all done by voting.
Guido is undoubtedly better at Python-but on the third day after the acceptance of PEP 572, feedback from flakes flew like this, making this 62-year-old famous engineer overwhelmed.
He was born in Haarlem, a small Dutch city, and graduated in mathematics and computer science from the University of Amsterdam in the Netherlands in 1982. Then he entered the Mathematics and Computer Science Center in Amsterdam and became a programmer.
At CWI, Guido had been working for 12 years, and did not leave until 1994. During Christmas in 1989, in order to pass the boring Christmas holiday, Guido determined to develop a new script interpreter as an inheritance of the ABC language.
The reason why I chose Python as the name of the program is because he really likes a British soap opera: “Monty Python Flying Circus”. He thinks the word Python is very interesting and very attractive. From the name of Python, it can be seen that Guido loves it.
Since the birth of Python in 1989, this straightforward engineer has spent 30 years of hard work to continuously improve it, and this is where Python is today.
Guido took a photo with everyone wearing a T-shirt with the words “Life is short, I use Python”
I will still be here
“As an ordinary core developer, I will still be there all the time, and I can still guide people, maybe more time.”
He added: “But I basically gave myself a permanent vacation improper BDFL (Benevolent Dictator For Life), and then you are on your own.”
No matter how the staff of the Python team changes, it is undeniable that more and more people use it.
July 2018 programming language index list CodingDojo recently ranked Python as the second most popular skill in developer recruitment ads. Stack Overflow’s 2018 developer survey ranked Python as the seventh most popular “programming, scripting, and markup language”, ahead of C #, Ruby, and PHP.
Facts have proved that Guido’s achievements are extraordinary: Python has become one of the most used languages in the world.
It is widely used in various fields such as machine learning, artificial intelligence, scientific computing, finance, games, mathematics, and physics. Various universities and major companies including Google, Facebook, Microsoft, Alibaba, etc. are also using Python.
“Life is short, Python is the shore”
Python is an ideal beginner’s language and is also used in heavyweight enterprise applications.
Its design is very simple, elegant and clear.
The most important thing is that Python is the first programming language of artificial intelligence-no one can shake its advantages in artificial intelligence.
The Python language is widely sought after by programmers, and its employment and salary have not disappointed.
In fact, as Guido once wrote in a letter to readers:
Python is a language that makes people’s lives easier. It allows you to focus on the job at hand, rather than entangled in every obscure detail of the computer system.
When it comes to the rounding system, everyone should be familiar with decimal, because most of life uses decimal, and we have learned the four arithmetic of decimal since elementary school. Since humans are so familiar with decimal, why don’t computers use the same decimal as humans?
Binary representation The bottom layer of the computer is composed of a bunch of electronic circuits. Let’s take a look at the simplest circuit example:
You may have guessed the function of the circuit above:
When the switch is closed, the light bulb is on When the switch is off, the bulb is off We can use the closed switch to represent 1, and the open switch to represent 0. This is a simple binary circuit.
Similarly, the magnetic disk is actually composed of many small magnets. The N pole of the magnet indicates 1, and the S pole indicates 0. So each small magnet has two states of 0 and 1 just like a switch.
Early components can only represent these two states (such as on and off, N and S, etc.), which is why computers use binary. Think about it, if the computer uses decimal, this electronic component must have ten states, how complicated it should be!
Binary bits and bytes However, the number that can be expressed with only one digit is limited. For example, binary is 0-1, decimal is 0-9, and hexadecimal is 0-15. Of course, a single number cannot meet our needs. If a computer can only handle the range of 0-1, humans can only handle the range of 0-9, and a disk can only store the two numbers 0 and 1, then social development may be early. Just stand still!
Smart humans choose to count with more digits, in decimal we can use eight digits to represent numbers within 100 million, the same is true for binary. We generally call the 8-bit binary a byte. One byte can represent 0-255 values (think why 255?). If you want to process more information, you need more bits. For example, a 64-bit CPU can process more and faster information than a 32-bit CPU.
The representation of “3” in binary Now that you know so much, how do you represent binary 3 in decimal?
In fact, this problem is the same as “9 + 2 in decimal”. That is through carry. Decimal is one for every ten, and binary is one for every two.
Now let’s see how to express 3: in binary:
The above picture clearly shows the calculation process in binary, is it the same logic as decimal decimal?
In a byte (8-bit binary number), the weight of each digit is different, namely 1, 2, 4, 8, 16, 32, 64, 128. Similarly, decimal is one, ten, one hundred, one thousand, ten thousand, etc.
In the past few years you have heard the words “artificial intelligence” in many different places: Alpha Go, which can play Go; Google’s voice assistant, which can call to order food; Amazon’s Alex, which can open TV, play music .
But in fact, very few people come forward to explain clearly, what is artificial intelligence?
A streamlined answer is this: Artificial intelligence is the use of machines to do things that only people could do in the past. Scientists have classified these things: reasoning, planning, learning, communication, perception, movement.
Use machines to do things that only people could do in the past. This sentence sounds simple, but if you look at history, you would not think so.
Since the birth of human civilization, we have probably experienced: the Stone Age, the Iron Age, the Machine Age, the Electrical Age … Today, the most critical milestone should be the “Machine Age”, which is what we often see in history textbooks “The Industrial Revolution”.
Why do you say that? All along, as the creators of value, we have always had two ways of creating value: one is manual labor and the other is mental labor. When the industrial revolution comes and we enter the machine age, manual labor is less important and the income of mental workers is improved. Everyone started to enter the factory and into the office.
“Machines do things that only humans could do in the past”, and humans can only play the abacus of mental work. What makes a person is what we need to spend more time thinking about.
Artificial intelligence technology In the 1940s, almost at the same time as the computer was invented, some people began to study this field. Since then, it has been obscured.
There is a law in the development of technology: the last month is still unknown, but once it breaks through a certain critical point, you can see it in life next month.
Things started to change dramatically more than ten years ago. In 2006, the emergence of deep learning algorithms, which pushed artificial intelligence to take a big step forward. Because of this big step, the rapid development of artificial intelligence like a blowout seems to have entered thousands of households overnight. All the cases we mentioned earlier all come from this.
In fact, since 2006, no underlying technology with such a huge influence has appeared. However, we have heard more and more information about “artificial intelligence” in recent years. This is because technology is applied to life.
In the future, there will be more applications. In it, it contains huge opportunities.
Let ’s take an example: we said earlier that artificial intelligence requires machines to do things that only humans used to do. There is a part in it called “perception”. In “perception”, there is a very important part is “image recognition”. In layman’s terms, it means that the computer can “perceive” the image like a human, and it can understand the picture.
In the old camera, it could not understand the picture. In its eyes: the rose is just a combination of a bunch of images and shapes. It is no different from the moon and no different from the bear.
You may be wondering, what is an algorithm? To make an analogy: We humans need “learning methods” to learn things. The same is true of computers, and we can understand “deep learning algorithms” as “learning methods” of computers. In the past, it has never had a good learning method. Now that we have it, we can learn something from it.
Let’s take a picture of 10,000 roses to the computer and tell it: Remember, this is a rose. With the help of algorithms, the computer calculates the common law of these 10,000 roses. It learns and remembers this law. When we go to show the computer the tenth and a thousandth photo. It makes a judgment: this picture basically conforms to the law I remembered before, and it has a 99% probability of being a rose.
So, it said: This is a rose.
Let the computer say: this is a rose. This may seem like a trivial thing, but it is a beginning.
We feed it more data: roses, ladders, faces, bread … let it calculate, learn, remember. Image recognition is like this: from now on, the computer can read the pictures.
Just because the computer can’t read the pictures, we still have to find ways to apply the technology to life scenes, so that it can create value.
As we said before, unmanned shopping requires image recognition technology: responsible for identifying the goods taken by the customer, identifying the customer ’s face for security, and responsible for scanning the code to complete the payment … Below, I want to give you a few A case: An image recognition technology alone, in what areas can it be used.
It can be used to fight pesticides.
With image recognition technology. You can use a drone with a camera to spray pesticides instead.
In our eyes, the farmland looks like this:
But in the eyes of drones, things look like this:
Which is the weed, which is the crop, at a glance. Pesticides are only applied where they should be. In this way, one is to improve the efficiency. It takes about two hours for two drones to spray pesticide on a farmland of about 100 acres. One is to reduce pesticide residues, which can save more than 90% of pesticides compared to the previous flooding scheme.
Another scenario is medical. As our standard of living improves and the average life span is extended, the incidence of cancer also rises. Normally, we go to check the body, to take a film, and then the doctor took it and told you: I am afraid it is not a cancer.
But now, we can let the computer do the movie. In fact, at present, artificial intelligence is already more powerful than humans in identifying early cancer.
Here we have to think about something: a doctor who wants to grow up to be able to diagnose cancer has to read many years of books and accumulate years of clinical experience. But for machines, this cost is too low.
You can see that the machine does not need to imitate the way people do things, the machine only needs to imitate, or even surpass the results of people doing things, which is enough.
You can also see that it is also an image recognition technology, which can be applied to various seemingly unrelated scenes. At this time, it can create great value. We can get an equation: artificial intelligence = algorithm + data + application.
Faced with artificial intelligence, what can we do?
According to this equation, we can play, in this wave of opportunities in artificial intelligence, what can we do?
Algorithm, this is a good idea. But the threshold is quite high. You have to learn the knowledge of mathematics and computer science, at least you have to read a research knowledge. From shallow to deep, the relevant content will probably be: Python programming, crawlers, data mining, advanced mathematics, machine learning, deep learning …
Data … Doing artificial intelligence does require a large amount of regular data. However, in the hands of ordinary people, it is difficult to have a large amount of data that can train algorithms. These data are often controlled by large Internet companies, such as: Google has search data, Facebook has social data, and Amazon has business behavior data …
Big companies hire high-paying talents for algorithms, and big companies have data. So, as you can see today, artificial intelligence technology is basically provided by these big companies. With the help of data and algorithms, Google and Facebook provide precise advertisements, earning tens of billions of dollars in profits each year; Amazon ’s cloud computing provides technical services to countless small and medium-sized companies, and supports the market value of nearly trillions of dollars.
But this does not mean that ordinary people have no chance in front of artificial intelligence. At least for applications, there is still much to be done. Moreover, the sooner you participate, the better your first-mover advantage.
You only need to know some basic programming skills, you can call the artificial intelligence technology that has been developed, and apply it to your industry. Let technology replace and help people to work. It can reduce costs and increase profits, it is profitable. It’s like applying image recognition to agriculture, medical treatment, etc.
Do technology or application? This is an issue we need to consider now. But there is a certain proposition-programming, which should be learned. If our goal is to learn to transfer existing technology and develop programming thinking. That’s actually quite simple …
And learning to program is more than artificial intelligence. You can use code to automate many of your usual tasks: image processing, document processing, market analysis, web crawlers, data analysis …
Choose Python
With so many programming languages, which shovel should I choose?
Answer, that is what you have already contacted, Python.
There are many programming languages, but if the purpose of learning programming is to participate in the wave of artificial intelligence, then the first choice is Python. Choosing Python is not only safe but also necessary.
After all, it is the leading language in the era of artificial intelligence, which is something that has been agreed in the technical world.
The Python language helps artificial intelligence develop faster, and the development of artificial intelligence drives more people to learn Python. From beginning to end, they are complementary to each other.
(The fifth annual programming language list released by the International Federation of Electronic and Electrical Engineers, Python tops the list.)
Not only that, Python has a dominant position in the most popular applications such as big data analysis, machine learning, cloud computing systems, web development (such as Facebook / Google, all developed in Python), game scripts … and so on.
The reason for this result is determined by the characteristics of the Python language:
It’s simple enough
To achieve the same function, C ++ requires 1,000 lines and Java requires 300 lines, but Python may only need 20 lines.
It is easy to learn and easy to read
Python language is highly similar to human language. Mastering the basic grammar of Python is as fast as a few days and as slow as 1-2 weeks. Almost no comments are required to allow you to read Python code. Next, you can use it to call existing technologies to implement your own projects.
It acts as a glue language, which is convenient for people from different industries to collaborate
The research and development of artificial intelligence requires the cooperation of people from different industries, not only developers, but also scientific researchers and creative talents in different fields.
Python is cross-platform and runs on systems such as windows, mac, linux, etc. It is particularly easy to learn. Everyone can package their own code very conveniently, and others can easily call it without reading it.
These characteristics make the cost of collaboration extremely low.
Learning artificial intelligence starts with Python.