The string"PAYPALISHIRING"Is written in a zigzag pattern on a given number of rows like this: (You may want to display this pattern in a fixed font for better legibility)
P A H NA P L S I I GY I RAnd then read line by line:
"PAHNAPLSIIGYIR"
Rsync
I. Basic Knowledge
1. Rsync: A transmission tool, similar to SCP
To use SCP, you must know the password and account of the remote host.
Upload files locally to remote
SCP [Option] source file [[[email protected] host1:] destions/File
The file
Zigzag Conversion
The string"PAYPALISHIRING"Is written in a zigzag pattern on a given number of rows like this: (You may want to display this pattern in a fixed font for better legibility)
P A H NA P L S I I GY I R
And then read line
I. Background 1. knowledge points
This blog is intended to introduce the following knowledge points:
Curl obtains the HTTP content;
Execute the PHP file in shell;
Execute shell commands in PHP (through the exec function );
PHP implements the tail-F
1Prepare data files
$ Cat a.txt
200:2
300: 3
400: 4
500: 5
2, UseWhileRead data from files cyclically
#! /Bin/KSh
While read line
Do
Echo $ line
Done
Run shell and the result is as follows:
200:2
300: 3
400: 4
500: 5
3, UseIFSRead files
Note:
(3) create a draw class to display graphics: Public class draw { /** Creates a new instance of draw */ Public draw (canvas ){ } Public static Boolean paint (Graphics g, byte IMG, int X, int y ){ // Draw the image specified by img At X and Y of
I. Shell Condition Statement (if usage)
If statement structure [if/then/Elif/else/FI]
If condition test statement
Then
Action
[Elif Condition
Action
Else
Action
]
Fi
If you are not clear about the conditional test statement, refer to:
Chapter 16. I/O redirection
By default, three "Files" are always open,(Keyboard ),(Screen), and(Error messages are output to the screen ). these three files and other open files can be redirected. A simple explanation of redirection is to capture a
The AAA. Log content of the file to be processed:
09/26 00:00:08 116.41834259033203 39.90071597768346 116.60888671875 35.3890499669116709/26 00:01:34 121.13089397549632 30.98941357306606 121.55966117978099 31.14988029343771409/26 00:01:51 117.1238332
Public sub appendannofeatures (pfeatureclass as ifeatureclass ,_Strtextfile as string)
Dim pannoclass as iannoclassSet pannoclass = pfeatureclass. ExtensionIf pannoclass is nothing thenMsgbox "annotation class not found"Exit subEnd if
'**************
[From] http://blog.csdn.net/lhx20/article/details/3039909Table control is used to display data in a table on screen. In table control, you can use table elements, keywords, templates, radio buttons, radio button groups, and pushbuttons. A row can
I believe everyone will be familiar with the redirection of the operating system. That is, >>>,
The syntax for Bash function-level redirection is actually very simple. You only need to add some redirection definitions or indicators at the end of
Example of awk Array Processing two files
If file a contains file B, the records of file B are printed and output to file C.
File:10/05766798607, 11/20050325191329, 29/0. 05766798607/10/05767158557, 11/20050325191329, 29/0. 05767158557/
File B:05766
All numbers have the same format internally in prel. In fact the Perl use double-precision floating-point value to store numbers.
Creating charaters by code point: CHR (), and ord () metheds.
E.g.
$alef = chr(0x05df) ;$code_point = ord('d') ;
In
Question:
The string"PAYPALISHIRING"Is written in a zigzag pattern on a given number of rows like this: (You may want to display this pattern in a fixed font for better legibility)
P A H NA P L S I I GY I R
And then read line by
We will encounter many problems in Suse Linux. The question we want to address today is how to run Tomcat for Service. I hope that the Knowledge mentioned in this article will help you learn how to run Tomcat for Service. 1. Create a startup/Stop
A Simple Method for importing data to mysql.
Because ubuntu comes with mysql 5.5 by default and cannot use the advanced feature load data infile, we have written a general script to upload files.
Shell script
cat ./employee.csv | while read LINE
Leetcode_6_ZigZag Conversion, leetcode_6_zigzagDescription:
The string"PAYPALISHIRING"Is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H NA P
Python Study Notes 2: python Study Notes
Chapter 4 for and while Loops
1. for is faster than while. The author of the python learning manual has been restarting to emphasize this.
2. A lot of for usage
A. for x in list:, similar to foreach in C #,
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.