1. Neither c nor C ++ provides the expression of binary numbers.
2. How do I express an octal number in C and C ++??
If the number is 876, we can conclude that it is not an octal number, because the octal number cannot contain more than 7 Arabic
2.3 use basic commands
12. cat command
It is used to display the file content on the standard output, but does not update the file. The syntax is cat + file name. For example, to display the content of the/home/long/example.txt file, run the
Popular usage: each bit of binary represents a State.
001,010,100 indicates three states.
Through or | operations, you can combine various States.
001 | 010 = 011
001 | 010 | 100 = 111
You can remove a certain State through and & Operations.111 & 00
BOOL (obj)
Returns the Boolean value of the Obj object, which is the return value of the obj.__nonzero__ () method
int (obj, base=10)
Returns an integer representation of a string or numeric object, similar to String.atoi (); From Python 1.6, an
Hexadecimal conversion, hexadecimal to hexadecimal
I. Numerical and numeric Conversion
(1) Number System
Binary is used in computers, because binary is easy to operate, easy to implement, and reliable, providing a favorable way for logical design
1. Change the owner of the fileCommand: Chown [-CFHVR] [--help] [--version] user[:group] File ...Function: Change the owner of a file or folderParameter format:User: The user of the new file owner idGROUP: The user group of the new file owner (group)
1. Permission model
Linux is all files, permissions are read (r), write (W), execute (x) the permissions of these files;
At the same time, the permissions are inseparable from the user, the permission is the owner of a file, belong to
What is a regular expression?Regular expressions, also known as formal representations, general representations (English: Regular Expression, often abbreviated as regex, RegExp, or re) in code, are a concept of computer science. A regular expression
Grammar | Regular regular Expressions grammar sentences
Here are some examples of regular expressions that you might encounter:
/^\[\t]*$/"^\[\t]*$" matches a blank line.
/\d{2}-\d{5}/"\d{2}-\d{5}" verifies that an ID number is made up of a 2-bit
1. Check processThe PS command finds the PID number associated with the process:PS A shows all programs under the current terminal, including other users ' programs.Ps-a Show All Programs.PS C shows the actual instruction name of each program when
Keywords: Linux check process, kill process, START process1. Check processThe PS command finds the PID number associated with the process:PS A shows all programs under the current terminal, including other users ' programs.Ps-a Show All Programs.PS
Python escape characterPython uses a backslash (\) to escape characters when special characters are needed in characters. As the following table:
Escape Character
Description
\ (at end of line)
Line
Keywords: Linux check process, kill process, START process1. Check processThe PS command finds the PID number associated with the process:PS A shows all programs under the current terminal, including other users ' programs.Ps-a Show All Programs.PS
1. Check processThe PS command finds the PID number associated with the process:PS A shows all programs under the current terminal, including other users ' programs.Ps-a Show All Programs.PS C shows the actual instruction name of each program when
1. Check processThe PS command finds the PID number associated with the process:PS A shows all programs under the current terminal, including other users ' programs.Ps-a Show All Programs.PS C shows the actual instruction name of each program when
The content of this section:1. Create a string2. accessing values in a string3. escape characters in a string4. String Operators5. string Formatting6. built-in functions for strings1. Create a stringvar1 = ' Hello world! ' VAR2 = "Chen71"2.
The string is the most commonly used data type in Python. We can use quotation marks (' or ') to create a string.Creating a string is simple, as long as you assign a value to the variable. Var1 = ' Hello world! ' var2 = "Python runoob" Python
Learn more about number typesNumber type, as one of the basic data types of JS, is applied in various scenarios in the program, and its importance is like numbers for our daily life.Below let us come together in-depth understanding under, for later "
Used Ubuntu friends should know that Ubuntu can implement automatic mounting of Windows partitions. This makes it extremely convenient for friends who need to read Windows partitions.
Just finished archlinux and configure the desktop environment
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.