Objective-C learning Summary-syntax features of functions and variables, objective-c syntaxObjective-C learning Summary-syntax features of functions and variables
Objective-C is an object-oriented language based on C and integrates Smalltalk features. This section describes the C language features of functions and variables in OC.Global and local variables
Global Variables:The variables defined outside th
Python syntax sugar, python syntax sugar
#-*-Coding: UTF-8 -*-Def deco (func ):Print ("before myfunc () called .") Func ()Print ("after myfunc () called .") Return funcBool = 0@ Deco # Here we can see that @ time is equivalent to time (xxx (), but you must consider the execution sequence of python code in this way.
Def myfunc ():Global boolBool = bool + 1If not bool = 2:Print ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Oracle -- SQL syntax summary and oraclesql syntax Summary
-- Statement block declare v_name varchar2 (30): = 'jack' -- defines the variable begin select v_name from dual; exception when others then dbms_output.put_line ('exception occurred '); end; -- if judge declare v_num1 number; v_num2 number; v_result varchar2 (10); begin if v_num1 is null or v_num2 is null then v_result: = 'undefined'; elsif v_num1>
Java syntax BASICS (Summary), java syntax basics Summary
1. Keywords: words with special meanings given by a language.
Reserved Words: Actually, words that have not been given a special meaning but will be used in the future.
2. identifier: it is actually a custom term in the program. For example, class name, variable name, and function name. Contains 0-9, a-z, $, and ,_;
Note:
1), cannot begin with a numbe
Basic shell syntax and shell syntax
I. Variables
1. Naming rules for variables: The name should start with a letter or underline followed by numbers, letters or underscores. It is best not to name it casually, so that you can see the variable name to guess its meaning.
2. Variable assignment: x = 100
Echo $ x
Delete variable: unset x
3. Braces are used to define the boundary of variable names.
[Root @ bogon
Java syntax basics 1: java syntax Basics
Basic Java code format
All program code in Java must exist in a class. class is defined using the class keyword. Some modifiers can be provided before the class. The format is as follows:
Modifier class Name
{
Program code
}
Note:
1. Java is strictCase Sensitive.
2. A continuous string in a Java program cannot be written in two separate rows.
Java program comments
T
MarkDown syntax Learning (1): markdown syntax LearningLevel 1 title
#Level 2 Title
##Level 3 title
###Level 4 title
####Level 5 Title
#####Level 6 Title
######Horizontal line
*** --- ___
*Font
Italic:* *
Bold:** **
Oblique bold*** ***
HTML italic:
HTML bold:
HTML bold italic:Reference
> >> >>> ...
Time flies.
Time flies-zms
Android Developer
Do not forget the original intention.
A simple example of using babel to convert es6 syntax to es5, babeles6 syntax es5
Preface
Babel is a widely used Transcoder that can convert ES6 code into ES5 code for execution in an existing environment.
This means that you can write programs in ES6 now without worrying about the support of the existing environment.
This article describes how to pre-install node and npm. For more information, see ht
Flex basic syntax (1): flex basic syntax
Any container can be specified as a Flex layout.
. Box {display: flex ;}
You can also use the Flex layout for In-row elements.
. Box {display: inline-flex ;}
The Webkit kernel browser must be added-WebkitPrefix.
. Box {display:-webkit-flex;/* Safari */display: flex ;}
Note: After the layout is set to FlexFloat,ClearAndVertical-alignThe property is invalid.
El
Python3 basic syntax and python3 syntax
I. Encoding
By default, the python3 source code file is encoded in UTF-8, and all strings are unicode strings. Of course, you can also specify different codes for the source code file:
1 # -*- coding: gbk -*-
Ii. identifier
1. The first character must be a letter or underscore '_'.
2. Other parts of the identifier are composed of letters, numbers, and underscores.
3.
AngularJS syntax explanation (continued) and angularjs syntax explanation
Src and href attributes
In Angularjs, src should be written as ng-src, and href should be written as ng-href, for example:
Copy codeThe Code is as follows:
Expression
In the template, you can perform simple mathematical operations, comparison operations, Boolean operations, bit operations, referenced arrays, and object symbols. Althou
IOS SQLite syntax basics and iossqlite syntax
Sharing the basic knowledge of SQLite statements is a basic part. It only involves four syntaxes: "add", "delete", "modify", and "query. table links and other content are not involved. I will update the table link later.
Github has an SQL Demo, including add, delete, modify, query. UI: url: ---> https://github.com/huyp/SQLite3_Demo.git
1 # import
Create a stud
Razor basic syntax 1: Razor basic syntax
Directory:
What is Razor?
Rendering HTML
Razor syntax
Implicit Razor expression
Explicit Razor expression
What is Razor?
Razor is a markup syntax for converting server code to web pages. The syntax consists of the Razor tag, C #
WPF series Path syntax (Data Attribute Syntax of Path), wpfpathExample:
XAML(Code): PathFigureCollection-->PathStroke = "Black" StrokeThickness = "1" Fill = "# CCCCFF"> /Path>StreamGeometry-->Stroke = "Black"Data = "M 100,240 C 510,300 80,100 300,160 H40 v80"/> Note the bold text section above.
WPF provides two classes to describe path data: StreamGeometry and PathFigureCollection.For example, the Similar
Sycode syntax highlighter is a javascript-based syntax highlighting.ProgramThe implementation method draws on the famous dB. syntaxhighlighter to use regular expressions for keyword matching. The processing speed is 5 ~ higher than that of DB. syntaxhighlighter ~ 10 times as fast as the current JavaScript syntax highlighting program.
Sycode
Smarty3 configuration and entry syntax, smarty3 entry syntax
1. Smarty3 Configuration
Download the Smarty File
Download the Smarty file from the Smarty official website, decompress the downloaded Smarty file, and the Smarty library file is in the libs folder.
The integration package of the PHP debugging environment I use is phpstudy. By default, there is a WWW folder on disk D. Create a folder named testSma
Ruby syntax notes, ruby syntax
Accept user input
first_name = gets.chomp
Uppercase letters
first_name.capitalize!
Uppercase letters
first_name.upcase!
Lower letters
first_name.downcase!
Multi-row output
Print
Note
# I am a comment
Variable acquisition
#{first_name}
Variable
Global variable $
Class variable @@
Method variable @
Local variables are lowercase letters or _
If/else
if a
Class
class
Detailed explanation of Webstorm new. vue file support highlighting vue syntax and es6 syntax, webstorm. vue
Webstorm adds the new. vue file function and supports highlighting vue syntax and es6 syntax. The details are as follows:
Add a new. vue File
① Search for vue in File-Plugins in the upper-right corner of Webs
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.