In the blog park for more than 1 years, has always been read articles but have not published any articles. Mainly because the technology is too food, only the part of the study, their own point of the level there is no good to share. But recently in
The compiler I'm using is: Python 3.6.0I said in the beginning that my compiler is because of different compilers, different versions of the code will have some differences in the wording!For example, in the version 3 I used, print was print ("Hello
/* "type operation function" * /get / set type GetType ($var)// get the data type of the variableSettype ($var, $type)// set the data type of the variableType judgmentIs_intIs_floatIs_nullIs_stringIs_resourceIs_arrayIs_boolIs_objectIs_numeric
Friendly tip: The text involves more animated GIF, mobile side please try to read in the WiFi environmentThe technique of debugging is an essential skill in any technology development. Master a variety of debugging skills, must be able to work in a
First, PHP system functions
Function
Function
Usage
Var_dump ()
Print variable structure information, including type and value. Array will recursively expand values
Var_dump ( $arg1...);
Python Exception handling
Kinds of Exception types
What is an exception type
Print # variable A is not defined # Nameerror:name ' A ' isn't defined # Nameerror is an exception type
Mathematical operations1. Divide and take the modelA == = Ten= d == a//b # divisible-Returns the integer portion of the quotient d = a% b # modulo-returns except The remainder of the method print (A," except ", B," equals ", C, ",
The topic of old growth talk, in the interview of the ability of the inevitable assessment, I personally think the problem-solving ability is ranked first, higher than the ability to learn the priority. The ability to solve problems can not only see
1:t= "ASDASD sdasd"Defined variables typically have strings and numbers ${t} and $t use variables2:o= "Sdfjkflsjl SDKAFJLJKDASL ${t}"echo o print variable echo $o $t link variableBasic operation can refer to the hand, as the script is easy to
1.bytes and STR functionsThanks to this blogger for sharing https://www.cnblogs.com/chownjy/p/6625299.htmlThen I'll go over the meaning of his article:
Bytes format when binary file, all 010101 and so on, and Str is a string type of
The
HoistVt. Arise, lift;VI. be lifted or elevated;N. cranes, lifts; Rises Push, hold, lift;
This article does not speak English, but for some English words can not find a good translation, the first to list the word "hoist" is to let everyone
Data typeA computer is a machine that can do mathematical calculations as the name implies, so a computer program can handle a variety of values. However, the computer can handle far more than the numerical value, but also can deal with text,
◊ Basic framework:A) GDB functionalityb) Run the programc) View the source coded) Set breakpoints (break) and observation points (watch)e) Single-step commissioningf) gdb Common Command Summary5.1 gdb function1) Start the program:Run (R), in
Formatted output:Name = QJAge = 30Job = ItSalary = 6000Example 1: string concatenation method, not recommended, because it will open up more memory space in memory.info = "----------info of" + name + "'---------Name: "+ name +"Age: "+ Age +"Job: ' +
Go to (, 0,0)
This is the command to have the character go to the current map to specify coordinates
For example: Go to (450,100)
You can go to the NPC point.
Go to the door (, 0,0) to reach the map (, 0,0)
It's a door statement.
From one of the
Before we talked about the Python advanced data Structure Learning tutorial, let's take a look at some of the advanced Python design structures and how they are used. in daily work, you can choose the right data structure for your needs, such as
? PHP'sEcho's "Hello World";
echo "This crossesMultiRow New GuildOutput and ";
echo "This span nmultiple line. Change Guild Noutput same. ”;
echo "Escape character do" like this. ”;
//You can use a variable within the Echo statement$ Foo's =
I. Use of file operations
1. Open a file and read the contentsFormat: Open ("File name", modify the encoding type). Read ()1 variable = open (" filename ", encoding="utf-8"). Read ()2 print (variable) #读取文件中内容Note: windows= default GBK
Data types and variable data typesIntegerPython can handle integers of any size, including, of course, negative integers, which are represented in the program in the same way as mathematically, for example:,,, 1 100 , and so on -8080 0 .Because the
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.