Tag:variable

  • Deep analysis of ruby variables

    Time:2021-10-24

    variableIs a storage location that holds any data that can be used by any program. RubyFive types of variables are supported. Generally, it starts with lowercase letters and underscores: variables. $starts with global variable. @Beginning: instance variable. @@Start: class variable class variables are shared throughout the inheritance chain Start with a capital letter: constant. Ruby […]

  • Introduction to Python variable scope and list

    Time:2021-10-20

    Variable scope Variables are limited by scope Classification: by scope Global: defined outside the function Local: defined inside a function Scope of variable Global variable: valid in the whole global scope Global variables can be used locally (that is, variables defined outside the function can be accessed inside the function) Local variables can be used […]

  • Variables and assignment methods in Lua

    Time:2021-10-3

    Look at the following cases: test.lua ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 –First […]

  • Advanced usage of shell programming variables

    Time:2021-7-31

    catalogue Variable replacement Variable test string manipulation String length Substring character index Substring length Extract substring Small trial ox knife Command replacement Typed variable Expr of mathematical operation BC of mathematical operation Variable replacement grammar explain ${variable name # matching rule} Slave variablestartMatch the rules to meet theminimumData deletion for ${variable name ## matching rule} […]

  • The concept and characteristics of MySQL custom variable

    Time:2021-7-22

    MySQL customization is a temporary container for storing values. As long as the connection with the server is active, the values in the container can be saved and used. You can set custom variables through simple set or select statements, as follows: SET @one := 1; SET @min_actor := (SELECT MIN(actor_id) FROM sakila.actor); SET @last_week […]

  • Notes on golang (2): types, variables and constants

    Time:2021-7-9

    Basic types 1. List of basic types Copy codeThe code is as follows: type         length      explainbool          one       True / false, the default is false, and non-zero values cannot be regarded as true (no number is used to represent true / false)byte          one       Uint8 aliasrune          four       Int32 alias. […]

  • Detailed explanation of variable variable in pytorch

    Time:2021-7-1

    1、 Understanding variables As the name suggests, variable means variable. In essence, it is a variable that can be changed. Different from int variable, it is a variable that can be changed. This is just in line with the properties of back propagation and parameter update. Specifically, the variable in pytorch is a geographical location […]

  • Explain constants and variables in golang programming

    Time:2021-6-6

    Go language constant Constants are fixed values that the program may not be able to change during its execution. These fixed values are also called literals. A constant can be any basic data type like an integer constant, a floating-point constant, a character constant, or a string literal. There are also enumeration constants. Constants are […]

  • Three ways to declare golang variables

    Time:2021-5-10

    There are three ways to declare variables in golang  One is to use VaR keyword to declare package level or function level variables;  The second is to use the short variable declaration method, which can only declare function level variables and need to specify the variable value;  Third, the const keyword is used to declare […]

  • Python variables, data types, data type conversion related function usage examples

    Time:2021-4-30

    In this paper, examples about Python variables, data types, data type conversion function usage. The details are as follows: The use of Python variables does not require type declaration (type name, variable name). The value assigned to a variable name is the type. Variable assignment and use= Note: Although Python does not have a type […]

  • 15 important variables you must know about MySQL performance tuning (summary)

    Time:2021-4-13

    preface: MySQL should be the most popular web back-end database. Although NoSQL has been mentioned more and more recently, I believe most architects will still choose MySQL as data storage. In this paper, the author summarizes and combs 15 important variables of MySQL performance tuning, and hopes to point out the deficiencies that need to […]

  • Perfect solution of topic switching based on CSS variable (recommended)

    Time:2021-3-15

      When receiving this demand, there are still a lot of schemes from Baidu to the industry about topic switching, such as CSS link replacement, classname change, etc less.modifyVars But every solution sounds tired and expensive. Is there a low code intrusion, brainless and easy to maintain solution? Of course, there are. To be exact, […]