python common modules (random, hashlib, os, sys)
random
The random module is used to get random numbers. Let's look at the functions commonly used in the random module:
# Return (0,1), float type
random.random()
# Return [1,3], int type
random.randint(1, 3)
# Return [1,3], int type
random.randrange(1, 3)
# Random access to an element in a list
random.choice([3,4,5,2,1, 'kitty'])
# ...
Posted by TheOracle on Sun, 03 Feb 2019 11:03:15 -0800
Copy of IO Stream Implementation Files
Flow (IO stream): input-output-stream.
Function: To achieve communication between two devices.
Devices: Memory, Hard Disk, Console, Keyboard, File, Network
Network: On the network, outside of your host environment.
Classification of flows:
Classification by operation: input stream and output stream
Classification ...
Posted by Wales on Mon, 28 Jan 2019 17:27:15 -0800
SQL Statement Syntax
Contents from the laboratory building: MySQL Basic Course
1. Data Definition Statement:
alter table:
ALTER [IGNORE] TABLE tbl_name
alter_specification [, alter_specification] ...
alter_specification:
ADD [COLUMN] column_definition [FIRST | AFTER col_name ]
| ADD [COLUMN] (column_definition,...)
| ADD INDEX [i ...
Posted by jbloom on Sat, 26 Jan 2019 20:06:14 -0800
Day 15, Introduction to JavaScript Events
Catalog
1,onload
2,onsubmit
3,onselect
4,onchange
5,onkeydown
6,onmousemove,onmouseleave,onmouseout
7. Event Dissemination
8. Exercise by Example
8.1 select Mobility
8.2 Secondary Actions
8.3 Realize positive and negative selection and full selection of tables
8.4 Search Box Implementation
8.5 Horse Lamp and t ...
Posted by PugJr on Fri, 25 Jan 2019 16:36:14 -0800
Stringk class and SString method
String str1 = "hello"; //At this point str1 is on the stack, and hello is in the constant pool in the heap
String str2 = new String("hello"); //The underlying call is the following program, which creates an array in heap to place the hello character in value
public String(String original) {
this.value = original.value;
...
Posted by graham on Thu, 24 Jan 2019 04:33:15 -0800
asp.net mvc configuration ckeditor4.x
Download address: https://ckeditor.com/ckeditor-4/download/
1. Method of use:
1. Introduce ckeditor core file ckeditor.js into the page
2. Insert HTML control <textarea> where the editor is used
<textarea id="Contents" class="layui-textarea editor1" name="Contents" style="width:99%;height:50%;"></textarea>
3. Create ckeditor e ...
Posted by bpops on Tue, 22 Jan 2019 10:57:13 -0800
Source of all evil - Python built-in function 1
Built-in function
What's a built-in function? It's a tool that Python provides for us to use directly, such as our print,input,type,id, etc. Up to version 3.6.2 of python.
There are 68 built-in functions. They are provided directly by Python to us. Some of them have been used. Some of them have not been used yet. Another one is that we need t ...
Posted by richard-elland on Mon, 21 Jan 2019 13:33:12 -0800
Android converts Chinese characters into Pinyin, achieves A-Z alphabetic sorting of ListView, and displays multi-syllable city sorting.
Android implements the A-Z alphabet sorting and filtering search function of ListView, and realizes the conversion of Chinese characters into Pinyin.
Content source: http://blog.csdn.net/xiaanming/article/details/12684155
I just made some minor changes according to my own needs and sent out a memorandum.
Today we bring you t ...
Posted by mothermugger on Sun, 20 Jan 2019 11:42:14 -0800
C# C onsole. Read (); and C onsole. ReadLine (); and C onsole. ReadKey (); the difference is detailed.
Console.Read(); and Console.ReadLine(); and Console.ReadKey(); the difference is detailed.
Console.Read(); Professional: Read the next character from the standard input stream. Popular: Read the first character and the second character entered by the keyboard, and so on, return the ASCII value, return and exit.
Sample code:
1 using System;
2 ...
Posted by courtewing on Sun, 20 Jan 2019 09:42:13 -0800
8.10 shell special symbols cut, sort,wc,uniq, tee,tr,split commands
shell special symbol cut command
cut partition, - d separator - f specifies segment number - c specifies the number of characters
Sort sort, - n in numeric order - r reverse order - t separator - kn1/-kn1,n2
Wc-l Statistical Lines-m Statistical Characters-w Statistical Words
uniq de-weighting, - c statistical rows
tee is similar to > and re ...
Posted by lmaster on Tue, 08 Jan 2019 18:33:10 -0800