• Behavior type: Xi Interpreter mode


    What is the interpreter mode Interpreter is a behavioral design pattern, which defines a language for the analysis object, defines the grammatical representation of the language, and then designs a parser to interpret the sentences in the language. In other words, use the way of compiling language to analyze the examples in the application. This […]

  • Chat with the father of Python: faster Python!


    Python cat note:At the python language summit in May this year, Guido van Rossum shared making Cpython fast(Material here), announced that he has joined the exciting Shannon program, which aims to improve Python performance to 5x in four years. Recently, Guido went on an English Podcast (30 minutes long), talked about his work related to […]

  • R & rstudio installation and configuration


    R and python, so similar, merge with each other. Using rstudio, you can directly run Python code, and the integration is very good. The installation of R is very simple Install after downloading, but it is suggested that this message translation should not be checked during installation. Otherwise, the error report will make you look […]

  • Pycharm running prompt no Python interpreter error how to do?


    When Python tries to run the program, click “interprem” to try the operation below. JetBrains pycham community version 2021.3 Chinese free official version (with Chinese package + installation tutorial) Type:Programming tools size:355MB Language:Simplified Chinese Time:2021-12-02 View details Open pycharm and click in the menu bar“File”->“Settings”。 In the pop-up“Settings”Select project: file name in the dialog box, […]

  • Design pattern learning 22 (Java implementation) — Interpreter pattern


    Write in front Take notes of learning design patterns Improve the flexible use of design patterns Learning address https://www.bilibili.com/vide… https://www.bilibili.com/vide… Reference articles http://c.biancheng.net/view/1… Project source codehttps://gitee.com/zhuang-kang/DesignPattern 24. Interpreter mode Design a software to calculate addition and subtraction. Our first idea is to use tool classes to provide corresponding addition and subtraction tools and methods. //Used […]

  • Pycharm introduction and common configuration


    Python ide pycharm1) Integrated development environment (IDE)Integrated development environment (IDE) – integrates most of the tools needed to develop software. It generally includes the following tools: graphical user interfaceCode editor (support code completion / automatic indentation)Compiler / interpreterDebugger (breakpoint / step)…… 2) Pycharm introductionPycharm is an excellent integrated development environment for PythonIn addition to the […]

  • Introduction to Java foundation JVM


    Java Engineer knowledge tree / Java Foundation What is a JVM JVM definition JVM (Java virtual machine) means Java virtual machine. It is a virtual computer, which can virtual various computer functions on the actual computer. JVM has its own perfect hardware architecture, such as processor, stack and register, and also has corresponding instruction system. […]

  • Bash script introduction


    [note] this article is translated from:An Introduction to Bash Scripting Bash script introduction Imagine yourself as a computer scientist, amateur or technical nerd? Then at some point, you will or should consider using bash scripts in your digital workspace. Bash (Bourne Again Shell)“) is an interpreter responsible for processing commands on the command line of […]

  • Detailed explanation of self startup service of Linux branch openwrt (Embedded Linux system)


    Version: Linux branch openwrt (Embedded Linux system)Linux version 3.18.29 gcc version 4.8.3 OpenWrt/Linaro GCC 4.8-2014.04 unknownThe self starting service of this version of openwrt is based on init The self startup configuration file in D Steps: Create a service, such as muxiu cd /etc/init.d vi muxiu #There is no need for any suffix. For shell […]

  • Tutorial on installing the ruby interpreter on the operating system


    RubyInstallation – LinuxHere are the steps to install Ruby on a Linux machine.Note: make sure you have root privileges before installing.Source installationDownload the latest version of ruby compressed file. Please click here to download.After downloading ruby, unzip it to the newly created Directory: ? 1 2 $ tar -xvzf ruby-2.2.3.tgz  $ cd ruby-2.2.3 Now configure […]

  • Introduction to Ruby’s basic environment variable settings and common interpreter commands


    Ruby environment variablesThe ruby interpreter uses the following environment variables to control its behavior. The env object contains a list of all currently set environment variables. For UNIX, use the env command to view a list of all environment variables. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 […]

  • Naming rules and functions of underscores in Python


    preface 1. There are two underscores before and after each, indicating that it is a built-in method of the class, which is used for operator overloading and other purposes. The functions written by yourself should avoid using the two underscores before and after. [variable name _xxx _ has special meaning for Python, such as _self […]