Python django BASICS (1) and pythondjango Basics
Django introduction:Django is an open-source Web application framework written in Python. It adopts the MVC framework model, namely Model M, view V and controller C. However, in actual use of Django, Django focuses more on models, templates, and Views, which are called the MTV mode. The main purpose of Django is to develop a database-driven website easily and
Python basics-string unicode and python Basics
Unicode is often used to process Chinese Characters in python. Because it is easy to encounter character string Encoding Problems, I generally convert the character strings to unicode for processing.
Define a unicode string in python. You can add u before the string:
Str = u "hello world"
Python defines a non-escape string. You can add r before the stri
Java basics-> Use of verification codes, java basics-verification Codes
A verification code is a public, fully automated program that distinguishes users from computers and people. It can prevent malicious password cracking, ticket flushing, and Forum bumping, effectively preventing a hacker from continuously logging on to a specific registered user using brute force cracking methods of specific programs, i
Automation test basics-Selenium browser operations, basics-seleniumSelenium mainly provides methods for operating various elements on the page, but it also provides methods for operating the browser itself, such as the browser size, browser back-up, forward button, and so on. I. Control the browser window size. Sometimes we want to open it in a browser size so that the accessed page can run in this size. Fo
Automated Testing basics-Selenium element positioning, basics-seleniumI. Importance of Selenium element positioning: operations for automated Web Testing: obtains elements on the UI page, operates on the Elements, obtains the actual results, and asserted (whether the returned results are consistent with the expected results ), return the automated test report. This article mainly uses Firebug, an auxiliary
.
CD directory path: Enter the specified directory. (CD D:\software, enter D from D:\ into D:\software Disk)
CD.. : Back to the top level directory
CD \ : Go back to the root directory
echo "Hello java" >a.txt writing text to the specified file
type a.txt display file Contents command
del : Delete file Note: You cannot delete a folder, only files can be deleted.
exit: Exit DOS command line
CLS : Notifies the computer to empty the current command
*: is a wild
Python BASICS (II): python Basics
1. Install python's ied pycharm (Professional Edition is not Chinese)
2. Operators
+,-, *,/, **, //, %
Determines whether something contains
In
Not in
Result is a value
Arithmetic Operations
A = 10*10
Value assignment
A = a +! A + = 1
The result is a Boolean value.
Comparison
A = 1> 5
Logical operation
A = 1> 6 or 1 = 1
A = 1> 6 and 1 = 1
Member operation
A = "small" i
Java Basics 14 and java Basics 14
Import java. util. summary; public class Fourtheen {/* print all "Daffodils". The so-called "Daffodils" refers to a three-digit number, each of which is equal to the number itself. */Public static void main (String [] args) {callback input = new callback (System. in); System. out. print ("enter a three-digit number:"); int a = input. nextInt (); System. out. print ("\ n");
Java basics 15. java Basics
Import java. util. Equals; public class should theen {/* There are n people in a circle, ordered by the number. When the first person reports the number (from 1 to 3), the person who reports the number 3 leaves the circle and asks the last person who left the number. */Public static void main (String [] args) {callback input = new callback (System. in); System. out. print ("Ente
Java basics 12: java Basics
Public class Twelfth {/* There are a bunch of peaches on the beach, and five monkeys can score points. The first monkey divided the pile of peach creden into five portions, one more. The monkey threw the other one into the sea and took one. The second monkey divides the remaining peaches into five equal portions and adds one more portion. It also throws one more portion into t
Java basics 20 and java Basics
Import java. util. collections;Public class Twentieth {/* A company uses a public phone to transmit data, which is a four-digit integer and encrypted during the transmission process. The encryption rules are as follows: add 5 to each number, then, replace the number with the remainder divided by 10, and then exchange the first and fourth digits, and the second and third digit
Java BASICS (1)-data types and java Basics
Java has two data types:
Basic data types and basic data types can be directly allocated to the stack.
Reference data type. The reference is stored in the stack, and the object is stored in the heap.
There are eight basic data types:
Class 1: char)
Type 2: logical (boolean)
Category 3: INTEGER (byte, short, int, long)
Category 4: float (float, double)
Java basics-Bubble sorting, java basics bubble
// Bubble sort, and compare public static void sort1 (int [] aa) {int size = aa from the back of the array. length; int temp; // cyclic array for (int I = 0; I
Sort idea: the first layer for loop, each value in the loop array, the second layer for loop, compare the size of aa [I] In the first for loop with other numbers starting from I + 1. If it is smaller
Java basics-New I/O technology (NIO) and basics nioBefore JDK1.4, I/O input/output processing is called the old I/O processing. Beginning with JDK1.4, java provides a series of improved new input/output features, these functions are called new I/O (new I/O) and many NEW classes are added for processing input/output.Java. nio package and sub-PackageIn addition, many classes in the original java. io package a
Java basics --- Servlet listener, basics --- servlet
Before writing this article, read the school friends write, I feel the basic knowledge of induction is very comprehensive, I am not cumbersome to write here, link address (http://www.cnblogs.com/sherryueda/p/4273169.html ),
I will write down the specific application of the listener:
The function is used to listen to various WEB operations. When an event i
Linux BASICS (1), linux BASICS (Linux Command:/root directory. current directory .. files starting with "·" in the upper-level directory are hidden files, and files starting with "d" are folder man + query content or commands: view the help (external command) query content or command -- help: a simple view of help is not as good as man's Detailed help + built-in command name: View help (built-in command) ls
Python basics 1 and python Basics
Variable: Information stored, called, modified, or operated in the future
Constant: Fixed amount, all uppercase letters
Naming rules:
Note:
#: Comment on a single line
"Or ''': multi-line comment
Get user input: Input ("")
Strong conversion:Str (integer type) # convert Integer type to string type
Int (string accepted) # convert string type to integer type
Arithmetic Operato
Python basics-functions and python Basics
A function is a function block that can be called repeatedly.
I. Definition
Def function name (parameter):... function body... return value
Requirements:
Def: function keyword
Function Name: the name of the function used for future calls.
Function body: code segment for running some operations
Returned value: whether the function is successfully run or not, or
Python basics special symbols and python basics special symbols
# \ N carriage return
# \ R line break
# \ S space
# \ T tab, do not know? Open a txt text file and press the tab key on the computer, that is, the one on caps lock. in the slot, you can see a large space (or ultra-short space). This is the tab character.
# Other functions will not be used. These functions are sufficient.
# % D Number
Pr
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.