cloneCode: git clone code addressSet the user name: git config — global user. name “marin” and the GIT config — global user. name command is used to viewSet mailbox: git config –global email “984482955@qq.com”Check all git –list to see all the contents.View file git status added or modified in branch stateAdd the newly added or modified files to the cache git add file name or git add.Adding cached files to the online version library git commit pops up a notepad for writing and submitting annotations Or git commit -m “I want the anno...
Simply make a record. If the button is not a submission button in the form form, there is no form submission event. We need to register an event for the button separately.
Here, register a form validation event.
$("#btnSave").click(function () {
var groupId = $("#groupId").val();
if(validform().form()) {
//Through form validation, write your own code below./ / form validation is successfully executed.Var url = path + "/GroupCustomer.do? Action=toAddAndUpdate& id=" +gRoupId;$("#editWin").Window ("close");GetVpnInfoData ();$.ajax ({Method:'get',Async:faLSE,Data: $("#data_form").Seri...
The first is to set up the running mode of Python.
That is, our common line, /usr/bin/python3, or /usr/bin/python!
Mainly used to specify the mode of operation.
Python3 xxx.py or Python xxx.py is equivalent to our input in the terminal.
Specifying this line allows us to turn it into an executable program that first gives permission Chmod 777 xxx.py to the terminal
Then you can run the program by double clicking.
Remember that you have to put it in the first line.
#coding:utf-8
#!/usr/bin/python
while True:
print('yes')
Can’t run in second rows.
#!/usr/bin/python
#coding:utf-...
python Path dependent functions
os.listdir(dirname):List the directories and files under dirname
os.getcwd():Get current working directory
os.curdir:Returns the current directory (“.”).
os.chdir(dirname):Change work directory to dirname
os.path.isdir(name):Determine whether name is a directory, and name is not a directory to return to false.
os.path.isfile(name):Judge whether name is a file, does not exist name, and returns to false?
os.path.exists(name):Determining whether there is a file or directory name
os.path.getsize(name):Get file size, if name is directory return 0
os....
https://stackoverflow.com/questions/2607508/how-to-control-docking-order-in-winforms
Go to View -> Other windows -> document outline.
In that window drag the controls so the docking is as you like it to be.
The order is in reverse order.
this.pnlNavigator.BackColor = System.Drawing.Color.White;1 this.pnlNavigator.Controls.Add(this.ttlMemberWebsiteSystemStep); 2 this.pnlNavigator.Controls.Add(this.ttlProgramSystemStep);3 this.pnlNavigator.Controls.Add(this.ttlGeneralStep);
After adjustment, the order of adding background is reverse order.
First display 3, then display 2, the...
Received a demand these days, there is a need to do a property component, looking for a third party, but can not fully meet my needs, there is time, I do a small wheel it.
Let’s look at the renderings first.The font icon used before the red dot is a right sign. Here, for convenience, the circle is used instead of the selected state, so it is not very good-looking. It needs to be modified by itself.)
I directly use vue-cli to build the project, the code directory is as follows:
The way of use is as follows:
treeDataThe format is as follows:
treeData: [
{open: false, name: '...
Explain:
This article mainly uses Python to achieve common sorting and search algorithms:Bubble sort、Selection sorting、Insertion sort、Shell Sort、Fast sorting、Merging sortingas well asTwo point lookupWait.
The basic idea of the algorithm is briefly explained, so long as the basic idea is understood, it has nothing to do with language realization.
This article mainly refers to the internet article, for learning only.
Development environment: Python3.5
Bubble sort
Bubble Sort is a relatively common sorting algorithm. It iterates over the sequence...
Cursor
Cursors are used to process multiple rows of records retrieved from the database (using SELECT statements). Using cursors, programs can process and traverse the entire recordset returned once retrieved one by one.
To process the SQL statement, Oracle will allocate a region in memory, which is the context area. This section contains the number of processed rows, pointers to the analyzed statement, and the entire section is the data row set returned by the query statement. The cursor refers to the handle or pointer of the context area.
Two. Classification of cursors:
...