Tag:Octal number system
-
Time:2021-4-1
Why use output controllers: We know that in the computer, data is stored in the form of binary in the computer, but the code composed of 01 can represent both data and instructions. It’s easy to misunderstand if we don’t use the output controller to become what we want. If the code composed of 01 […]
-
Time:2021-1-19
fn main() { Println! (“{}”, 1); // default usage, print display Println! (“{: O}”, 9); // octal Println! (“{: X}”, 255); // hexadecimal lowercase Println! (“{: X}”, 255); // hexadecimal uppercase Println! (“{: P}”, & 0); // pointer Println! (“{: B}”, 15); // binary Println! (“{: e}”, 10000f32); // scientific count (lowercase) Println! (“{: e}”, […]
-
Time:2020-12-11
Note: This paper is transferred fromPick up the star blog Regular expressions in PHP “^ D + $” // non negative integer (positive integer + 0) “^ [0-9] * [1-9] [0-9] * $” // positive integer “^ ((- \ D +)| (0 +)) $” // non positive integer (negative integer + 0) “^ – [0-9] […]
-
Time:2020-11-25
OCT function is also a python built-in function. It mainly converts an integer into octal, which is similar to ord function / Chr function; 1、 Introduction to OCT function The oct() function converts an integer into an octet string. The syntax is as follows: oct(x) Parameters: X – integer; Return value: return octal […]
-
Time:2020-8-10
1、 System 1. Display octal and hexadecimal (1) % d is used to display decimal numbers; (2) % O is used to display octal numbers; (3) % X is used to display hexadecimal numbers. (4) % u is used to display an integer of type unsigned. In addition, if you want to display prefixes 0, […]
-
Time:2020-8-7
Ask questions PHP nativejson_encodeMethods when encoding Chinese, no parameters are addedJSON_UNESCAPED_UNICODEGet a list of classes\uXXXXThe string with parameters is the Chinese we usually see. What happened? Confirmation phenomenon //1.php <?php echo json_ Encode (‘good ‘); # php 1.php > 1.txt # ls -l 1.txt -rw-r–r– 1 root root 8 Jun 12 15:21 1.txt # cat […]
-
Time:2020-7-22
The numbers we usually use are composed of 10 numbers from 0 to 9, such as 1, 9, 10, 297, 952, etc. a number can represent nine at most. If you want to represent 10, 11, 29, 100, etc., you need to combine multiple numbers. For example, for the result of 5 + 8, if […]
-
Time:2020-7-16
I. char type Instead, char.65 represents an integer of type A, not an ASCII character; 2. The standard ascii range is 0-127; a global character set is created by commercial Unicode; 3. Note: C language defines 1 byte as the bit occupied by char type, so char type can be used in 16 bit, 32-bit […]
-
Time:2020-2-5
Recently, when using the txt file for data processing, I suddenly found out how the txt file encodes the data. Is it stored in binary? In order to know this situation, I used the hexdump tool to view the binary form of the txt file, and learned the use of the hexdump file by the […]
-
Time:2019-12-28
By Jimmy Breck mckye Crazy technology house Original: http://www.breck-mckye.com/bl No reprint without permission Although I’ve been writing JavaScript code almost every day for the past seven years, I have to admit that I don’t really pay much attention to es language release statements.async/awaitandProxiesMajor features like this are one thing, but steady small-scale, incremental improvements are […]
-
Time:2019-11-24
Original: https://blog.csdn.net/lipengfeihb/article/details/54415283 I. Problems fileName := “/Users/my/tests/perm_file” f, _ := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0666) // code f.Close() The above code is to open a file. If the file does not exist, a new file will be created. At the same time, the permissions are set to 0666 (- RW RW RW RW -), but the permissions […]
-
Time:2019-10-25
Placeholder: %D,% I, for integer,% f-floating point,% s, string,% C, char.% P pointer,% FL long long,% e scientific count,% G decimal or scientific count. Format placeholders in C: %A,% a reads a floating-point value (p-count (hex count), C99 only) %C read in a character %D read in decimal integer %E convert numerical value to exponential […]