Python It's a common scripting language , flexible , practical , Instead of caring about the implementation logic itself !

Python Usually in linux Next programming , There are two ways ! Of course , In order to use linux Text editing , The selected mode is Not Interactive mode !

Interactive : Simple , convenient , But all the content , all Temporarily stored in memory , Not easy to store !

Text mode : With python Command mode to explain , function python One way , stay linux On !

Attention should be paid to :

1. The suffix of the text file should be .py ending !

2. With ./xx.py Command mode runtime , You need to comment at the beginning :

#!/usr/bin/python(python Installation path for ).

Add file execution permission :chmod +x xx.py;// Add permissions .

Python Learn more about the first day of note taking

  1. rookie Python The first day of study notes : About the use of some function libraries

    2017 year 1 month 3 Japan Tuesday It's really hard for freshmen to learn a new computer language , Sometimes even the spelling of a function can be checked for a long time , Can't , Who makes my English so bad . I think we should learn computer language from C It's better to start learning a language ,Python There are many languages ...

  2. Python Learning notes -- Chapter one

    This note refers to Liao Xuefeng's Python course brief introduction Python It's a high-level programming language . use Python What can be done ? Can do daily tasks , Like automatically backing up your MP3: You can make websites , Many famous websites include YouTube Just ...

  3. Python Learning notes The first lesson list

    Python The list of is like an array : One . Create a list of movies=["The Holy Grail","Then Life of Brian","The ...

  4. Python Learning manual :Python The first day of study notes

    Get current directory path : import os os.getcwd() In the input python The program , Try to keep statements that are not nested at the far left , Otherwise the system might come out "SyntaxError" error a ...

  5. python Study notes section 1

    One .HelloWorld #!/usr/bin/env python #-*- coding:utf-8 -*- print("HelloWorld!") Two . User interaction #!/us ...

  6. python The first week of study notes

    Catalog : One . Basic concepts 1. Variable and constant introduction 2. Use of quotation marks 3. conditional 4.while And for loop 5.input Input 6.getpass modular 7.python code Two . Homework 1. Personal login system 2. many ...

  7. Python Learning notes lesson one

    1.pycharm Shortcut key Revocation and anti revocation :Ctrl + z,Ctrl + Shift + z Indent . Don't indent :Tab.Shift + tab function :Shift + F10 uncomment , Line notes :Ctrl + ...

  8. VS2013 in Python Learning notes [Django Web The first page of ]

    Preface I have just introduced Python Of Hello World. See someone ask me to make a mess of Python Of Web, For a while , Let's have a try . Chapter one  VS2013 in Python Learning notes [ Environment building ]  Brief introduction Python Ring ...

  9. OpenCV And Python Learning notes

    OpenCV And Python Learning notes I use it all the time Python+OpenCV Prototype some algorithms . I wanted to stay and post some articles , But it's a little helpless to sort it out , It's all about small pieces that are scattered and unsystematic . Now look To a new book abroad < ...

Random recommendation

  1. 【 im 】XMPP Debugging and simple use

    I talked about [ im ] Instant messaging and XMPP Overview and environment configuration , Next we're going to debug , See if you can use ! We need to save something before testing , For later use —— Sign in openfire backstage —— Get the server name and port ...

  2. Hihocoder 1035 [ Tree form dp]

    /* The question : Don't bow your head , Don't give up , Don't be discouraged. , Don't panic . PS: The first tree shape in life is made by oneself dp... Give a tree , label 1 To n, Each edge has two weights , Walking time and driving time . Where is the car 1 Number point . to m A key point that you have to visit ...

  3. Use Gradle Run integration tests

    If Gradle The project built is a web Project words , It may include some integration tests and functional tests . The difference between these tests and unit tests is that you need to run them locally web The service starts up , And it can automatically turn off after running the test web service . stay ...

  4. tengine-2.1.0 + GraphicsMagick-1.3.20

    export LUAJIT_LIB=/usr/local/libexport LUAJIT_INC=/usr/local/include/luajit-2.0/./configure --prefix ...

  5. RouterOS Common soft routing commands

    Change user password [admin@MikroTik]>/user                               # Enter the operating path [admin@MikroTik]/user>prin ...

  6. log4j application

    Preface : The purpose of this article is to give a brief introduction to log4j Students studying , After reading this , It should be able to improve . The main content is based on log4j In the configuration file Text : log4j Using parameter log4j Sample configuration file : ...

  7. OC Basic notes Directory

    OC Basics (1) Objective-C brief introduction OC and C contrast first OC Program Object oriented idea OC Basics (2) Classes and objects Class design first OC class Object method declaration and Implementation Class method declaration and Implementation OC Basics (3) object ...

  8. CSS style —— typeface 、 The elements are vertically and horizontally centered

    1.CSS Style vs HTML The difference between tag attributes in : The attribute of the tag is to use Property name =“ Property value ” It means CSS The style is a name value pair Property name : Property value : It means 2. Inline elements ( Inline elements ) And block elements (1) Inline elements and their characteristics : ...

  9. [2017BUAA Soft assistant ] Personal project preparation

    BUAA Preparation for individual project of soft worker zero . register Github Personal account number ( You don't have it ..) This is a Git The use of the tutorial : http://www.cnblogs.com/schaepher/p/5561193.html ...

  10. Use Java Code customization Ribbon To configure

    A lot of scenarios , Different microservices need to be implemented with different strategies , For example, modify Ribbon Load balancing rules, etc .Spring Cloud Allow to use Java Code customization Ribbon Configuration of . stay Spring Cloud in ,Ribbon ...