How to make small programs in python, how to write small programs in python

Hello everyone, the editor will answer the following questions for you, the production process of making small programs in python, how to write small programs in python, let us take a look now!

Operate in the windows environment

window+R enter cmd to create a folder mkdir pytxt

Create a py file py.py and edit it with notepad or notepad

76960f49249af42c21f9dcfe8122cc3f.png

07d61599120dfd13cac2a4f7384eea65.pngor

ea8c674121ad69127c7e3e9b3eaf34a3.png

First declare that there is no Chinese garbled characters after python3.5, and Chinese is already supported, just like java's jdk1.6 supports Chinese. PHP and PYTHON : a detailed comparison based on syntax, functions, applications, etc.

Enter the python interactive environment and then perform data calculations. The following commands are simple addition, subtraction, multiplication, and division

ae45df84e470bfd5d63c45afce8cee3d.png

Let's take a look at the Chinese operation of the python2.0 version

Python Chinese encoding

Python2.0 output "Hello, Wor

Guess you like

Origin blog.csdn.net/mynote/article/details/132623327