Tstringlist Common operations//Tstringlist Common Methods and properties:VarList:tstringlist; I:integer;BeginList: =Tstringlist.create; List.add (‘Strings1‘);{Add to}List.add (‘Strings2‘); List.exchange (0,1);{Replacement}List.insert (0,‘Strings3‘);{Insert}I: = List.indexof (‘Strings1‘);{The first occurrence of the position}List.sort;{Sort}list.sorted: = True;{Specify sort}List.count;{Total}List.text;{Text Collection}List.delete (0);{Delete, 0 is the first data}List.loadfromfile (‘C:\tmp.txt‘);{
SERVICE1.AAA () and SERVICE2.BBB () to complete a business.At this point service1.aaa () service2.bbb () have transactions, then which of the transactions apply? The propagation behavior of the applied transaction.Propagation behavior of transactions: used to resolve calls between business layer methods and how transactions are passed.2. 7 propagation behaviors of a transaction (Class 3, key 1th)Descriptio
Scenario One:
The data in the table
Name Score
AAA 11
AAA 19
BBB 12
BBB 18
CCC 19
DDD 21
Expected query results are as follows
Name Score
AAA 30
BBB 30
CCC 19
DDD 21
Copy Code code as follows:
---Check if the table exists
if exists (select * from sysobjects where name= ' testsum ')
drop table Testsum
Go
---create a table
CREATE TABLE Te
master on either sideKey One-to-many, multi-pair (class and student, of which class is 1, student is more): in many of the parties to save one side of the primary key Many-to-many (teachers and students, both sides are more): Using the intermediate table, save the corresponding relationship --------------------------------------------------------------------------------------------------six, multi-table query CREATE table TB (ID int primary key,name varchar); CREATE TABLE TA ( ID int primar
of the first occurrence information that failed to match the successful return null, usage: pattern.exec (str); Need to be aware that there is no "G" of the same
Copy Code code as follows:
var Re1 =/([a-z]*) bbb/;//Greed
document.write (Re1.test ("abbbaabbb1234") + "document.write (Re1.exec ("abbbaabbb1234") + "var Re1 =/([a-z]*) bbb/g;//Greed
document.write (Re1.test ("abbbaabbb1234")
debugging using the PDB
The PDB is a Python-brought package that provides an interactive source code debugging feature for Python programs, including setting breakpoints, stepping through debugging, entering function debugging, viewing current code, viewing stack fragments, dynamically changing the values of variables, and more. The PDB provides some common debugging commands, as detailed in table 1.Table 1. PDB Common commands
Here's a concrete example of how to debug with the PDB.Listing 1.
more parameters, refer to man xargs it.
-A file is read from files as Sdtin
$ cat 1.txtAAA BBB CCC DDDA b$ xargs-a 1.txt EchoAAA BBB CCC DDD A B
-e flag, note that sometimes-e,flag must be a space-delimited flag that stops when Xargs analyzes the flag that contains flag
$ Xargs-e ' ddd '-a 1.txt echoAAA BBB CCC$ cat 1.txt |xargs-e ' D
The difference between are used to activate beans that have already been registered in the Spring container, either through XML or through the package sanning.Let's take a look at their differences in detail below, with three class a,b,c, and the B,c object is injected into A.Package Com.xxx;public Class B {public B () { System.out.println ("Creating bean B:" + this);} } Package Com.xxx;public Class C {public C () { System.out.println ("Creating bean C:" + This);} } Package Com.yyy;imp
": "222"} {ToJSON is the same as ToString, but should use ToString instead of ToJSON if possible, because ToJSON is also calling ToString and reallocating memory}J.free; EndTjsonarray procedure Tform1.button2click (sender:tobject); var A:tjsonarray; Begin A: = Tjsonarray.create; A.add (1); Tjsonarray is not like a traditional array, it can accept several different types of values, which should be considered as an extension of the Delphi array function. A.add (2); A.add (' AAA '); A.add
Native usageAPIs for direct use_.rejectRemoves an element based on the condition.var foo = [ {id: 0, name: "aaa", age: 33}, {id: 1, name: "bbb", age: 25}]var bar = _.reject(foo, [‘id‘, 0])//bar = [{id: 1, name: "bbb", age: 25}]_.pickFilters the value in the first parameter and returns the array based on the key of the second parametervar foo = {id: 0, name: "aaa", age: 33}var bar = _.pick(foo, [‘name‘, ‘
Using a cross tabulation, We can display items in a column field, such as [subject] to display [exam scores]. can the [job score] be displayed in the same cross tabulation query at the same time?
For example, the following dataTable 3+ ----- + -------- + ------- + ------ + ------------- +| ID | sname | sclass | course | score | homeworkscore |+ ----- + -------- + ------- + ------ + ------------- +| 1 | AAA | 3 | language | 50 | 8 || 2 | AAA | 3 | mathematics | 83 | 9 || 3 | AAA | 3 | English | 6
Scenario 1:
Table Data
Name score
AAA 11
AAA 19
Bbb 12
Bbb 18
CCC 19
Ddd 21
The expected query result is as follows:
Name score
AAA 30
Bbb 30
CCC 19
Ddd 21
CopyCode The Code is as follows: --- check whether the table exists
If exists (select * From sysobjects where name = 'testsum ')
Drop table testsum
Go
--- Create a table
Create Table testsum
(
TID int Prima
Scenario: 1. archive is enabled for the database; 2. All archived logs are online after the data file is created; 3. No backup is performed for the data file or tablespace, and no full database backup is performed for the database.
Scenario: 1. archive is enabled for the database; 2. All archived logs are online after the data file is created; 3. No backup is performed for the data file or tablespace, and no full database backup is performed for the database.
Scenario:
1. Open archiving for
need to be downloaded for the C + + version. Direct Baidu: Eclipse C + + Chinese version, found the first I downloaded, the title is: "Eclipse idefor C + + developers (Eclipse development C tools) 4.3 SR1 Simplified Chinese full version", File size 144.64MB, file name: Eclipse-cpp-kepler-sr1-win32 directly decompression can be run using, do not need to install. If you can't find it, try the author's path: http://www.newasp.net/soft/73383.html.If you run an error, it may be that the system does
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.