Python Regular Expression (Escape problem), python escape
Let's first talk about a relatively embarrassing thing: When I write a Xiami music audition package, I encountered a problem, because the saved files are all named by the music title,
Let's talk about a rather embarrassing thing: in writing the shrimp music to listen to the download device encountered a problem, because the saved files are named after the title of the music, so encountered some such as "impose zhi/out border",
Basic concept01:stringAll of the tests in this article, such as no special instructions, are based on fish shellLet's start with the string, what is the string, and we'll look at a few simple examples?> ~ set param ABC? Echo " string with blank and $
When to use the shell
Because the shell appears to be a common feature between UNIX systems, and has been standardized by POSIX. As a result, the shell script can be applied to many systems as long as it is written "attentively". Therefore, the
Pilot Log Chapter:
1. Variable definition
Direct definition:a=10B=23C=a+bPrint (c)
2. Judgment statement:
#coding = Utf-8 Python is not able to recognize Utf-8, so commentScore=90If score >=70:Print ("nice")Elif score >=60
2-1.python Constants and variablesA constant in Python refers to an immutable amount in the course of a program's operation, which is characterized by a binding that cannot be changed, and that the constants defined in Python need to be created
Some punctuation marks in ⒈ Chinese are not in English.
(1) comma (,): it is used to separate the parallel components in sentences in Chinese. There is no comma in English. For example:She slowly, carefully, deliberately moved the box.Note: In a
One, command line substitution (a) history substitutionWe have studied before!! Represents the execution of the previous command, which is a substitution.(ii) curly braces replacementNot very easy to express, directly on the example. For example: We
Using JavaScript in HTML
JavaScript can embed HTML in two ways:
When used as statements and functions, use the SCRIPT tag
When used as an event handler, the HTML tag
SCRIPT tag
Use script tags to embed scripts in HTML, in the form
English pronunciation of English symbols1.-Dash_ Underscore$ Dollar sign# Number sign% Percent sign* Asterisk// Double slash/*... */Slash and asterisk"Double quote'Single quote
, Comma, comma. Full stop! Exclamation point; Semi colon semicolon()
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.