Tag:python

  • Using Python to solve the problem of non backslash for windows file names (Python tips)

    Time:2020-1-19

      In the process of programming, we often encounter a small problem – Microsoft Windows uses backslash characters between folder names, while almost all other computers (operating systems) use forward slashes: Windows filenames: C:\some_folder\some_file.txt Most other operating systems: /some_folder/some_file.txt This is due to a small accident in the history of computers in the early 1980s. […]

  • Flash source code parsing: Context

    Time:2020-1-18

    This is one of the articles in the flash source code analysis series. The list of all articles in this series: Flash source code analysis: Introduction Flash source code analysis: application startup process Flash source code parsing: Routing Flash source code parsing: Context Flash source code parsing: request Context (application context and request context) Context […]

  • How can docker play like this? Commercial level 4G agent construction practice!

    Time:2020-1-18

    Time flies fast. It’s two weeks since the last article in this series, “commercial 4G agent building guide [preparation],” was released. Last week, due to all kinds of trivia, I had no time to write articles since Tuesday, so I googled. In the preparation part, we have learned about the hardware and software needed to […]

  • Python multithreading implementation

    Time:2020-1-18

    I started my first blog for beginners, recording every bit of learning, as a memo, and I hope to share with you. I hope you can correct the mistakes. I refer to the introduction of multithreading in python (http://www.cnblogs.com/fnng/p…), which is very introductory and detailed. This paper introduces the basic usage of threading. The simplest […]

  • Installation and operation of Supervisor

    Time:2020-1-17

    supervisor 1、 Install supervisor installation Note: all of the following operations are performed in centos7 1. Install centos7 extended software warehouse sudo yum install -y epel-release 2. Install Supervisor yum install -y supervisor 3. View the installation path rpm -ql supervisor 4. Modify and define INI file step1: Find the file of the supervisor’s configuration. […]

  • CentOS 7.2 environment building record (Chapter 4: Python environment configuration)

    Time:2020-1-17

    Chapter 4: Python environment configuration Using environment tools Python environment tools Python 2.7.5 ා python2 version, built in the system PIP 9.0.1 (python2 version), python toolset, compilation and installation Virtualenv 15.1.0 – python2 version virtual environment dependency, PIP installation Virtualenvwrapper 4.8.2 – used with virtualenvwrapper, PIP installation Setuptools 38.5.1 – Python toolset, compile and install […]

  • Flash source code parsing: request

    Time:2020-1-17

    This is one of the articles in the flash source code analysis series. The list of all articles in this series: Flash source code analysis: Introduction Flash source code analysis: application startup process Flash source code parsing: Routing Flash source code parsing: Context Flash source code parsing: request Flash source code analysis: response brief introduction […]

  • Flash source code analysis: response

    Time:2020-1-15

    This is one of the articles in the flash source code analysis series. The list of all articles in this series: Flash source code analysis: Introduction Flash source code analysis: application startup process Flash source code parsing: Routing Flash source code parsing: Context Flash source code parsing: request Flash source code analysis: response Introduction to […]

  • First update of Python interview

    Time:2020-1-15

    It will take about seven minutes to read this article. 1. What is legb in Python Legb refers to the variable scope problem in Python, where 50: The local local variable, which only exists in the function, is stored in the stack, and its life cycle will be released at the end of the function. […]

  • Pycharm new template of Python application adds coding format author time and other information by default [recommended]

    Time:2020-1-15

    During the use of pycharm, the coding format of each new file and some personal information about the code writer can be filled in quickly as follows: 1. Open pycharm, select file settings (Ctrl + Alt + s), and then select editor — color & Style — file and templates — Python script You can […]

  • Building a simple web chat room framework with websocket

    Time:2020-1-14

    httpThe protocol is that every time the client sends arequest, the server returns aresponse, the server cannot send data to the client actively. We are going to make a web chat room. When one person sends a message, how can others see it? One way to do this is to keep running on the webjsSendrequestTo […]

  • Analysis of hotel data in Dalian

    Time:2020-1-13

    This project is from the 6th issue of “building + data analysis and mining practice” of the experimental building. “Building + data analysis and mining practice” is a course content customized for the junior engineer of data analysis or data mining in the experimental building. It includes 35 experiments, 20 challenges, 5 comprehensive projects and […]