, fortunately separated, really feel sorry for her, I hope she will not meet me such a pit cargo, hope she can be happy all her life, I hope she is good enough, as adults the most basic moral, is not to add to others, I count an adult. talk about the status quo, high school out of lakes, education has been criticized, so reported to self-examination, now every weekend to class, Saturday English, weekend Japanese, it seems the future grass American sister to marry Japanese wife's wish to realize,
Old boy Python Network Class-Day01 job-simulated login system, python-day01
Simulate the operations, condition statements, and loops of the main exercise files in the login System
Knowledge point:
1. str. strip ([chars]):
Delete all spaces at the front and back of the string. The chars parameter can be used to customize the characters to be deleted. Optional.
Input (). strip () can remove spaces when a user inputs to avoid unnecessary errors.
Us
, my neighbor called me and said, "Qingxi, are you not at home with your mom during this time ?"I said yes. I went out.He said, "There is a boy waiting for you two weeks ago. I think from the very beginning to the evening, he said that you may have gone out and are not at home during the summer vacation. Hey, you are back now. Do you want to call him to know who he is ?"I said yes.Xu weiyu also went abroad, which seemed as convenient as eating a KFC.I
Miyu original, post Please note: Reprinted from __________ White House Question address:Http://acm.hdu.edu.cn/showproblem.php? PID = 1, 1850Description:Problem descriptionA year of careCan you be a good boy for a few days?Do the following during the winter vacation Accompany mom to a restaurantQuietly buy a small gift for DadTake the initiative to strongly require a bowl washGet up early one day and cook breakfast for your parents. You can talk t
Shell advanced programming video tutorial-follow the old boy step by step to learn Shell advanced programming practical video tutorial, advanced programming shell
Shell advanced programming video tutorial-step-by-step learning of Shell Advanced Programming TutorialTutorial introduction:
This tutorial contains 71 sections, mainly about shell-related knowledge tutorials, for example, the basic knowledge required by shell programming, the introduction o
the pressure of the database, we generally use the distributed cacheMemcache,redisand so on, the database also needs to do the reading and writing separation optimization, the subsequent process and access to Dynamic Web page similarwhen the browser loads a full page, it also needs to be disconnected from the server, which is a four-time TCP wavefirst the client sends a The FIN ID and a seq random number, after the server receives, responds with an ack,the value of the ACK equals the value of j
This section speaks about some of the fundamentals of the siteAccess mechanism.DNS AHThe timeline is around 1999, and the portal has risen.Sohu, NetEase, Sina, and so on the best era of the portal site, at that time is generally static web pageFlow is the amount of money, there is money flow reason. Www.hao123.com is also an example of a successful static websiteStatic website Technology Html.xmlThe beginning and terminator of HTML are all paired up.and Div+css mode.And it's a nested pattern.Pro
TopicUse iptables to limit the number of Apache connections per second to 1 and peak to 3Reference answerIptables-a input-d 172.16.100.1-p tcp--dport-m limit--limit 1/second--limit-burst-j ACCEPTNotetoday is the day to accompany everyone's __ 66th Day __, look forward to your progress.For questions and answers, please leave a comment in the blog comments section.Index of the topic of the previous periodhttp://lidao.blog.51cto.com/3388056/1914205This article is from the "Lee blog" blog, make sur
As shown below:[Email protected] ~]# free-m total used free shared buffers achedmem:981834 146 0 7 181-/+ buffers/cache:646 335 swap:1023 51 972Answer:[[email protected] ~]# swapoff-a[[email protected] ~]# swapon-a[[email protected] ~]# free-m Total usedFree shared buffers cachedmem:981 884 0 7 182-/+ buffers/cache:694 286 swap:1023 0 1023NoteToday is the 116th Day of the day to accompany you and look forward to your progress .For questions and answers, please leave a comment in the blog comment
Can expand into a more detailed configuration, such as menu, if you work hard enough, you can do one-click deployment of hundreds of server service monitoring, there is no problem (including host.cfg,service.cfg, etc.), if the configuration support directory is simpler.1. Set up the machine name and IP Correspondence listCat >host.list oldboyVM-001 192.168.1.1oldboyVM-002 192.168.1.2oldboyVM-003 192.168.1.3oldboyVM-004 192.168.1.4Eofoldboy#提示: The above list can be edited manually or the script
encoding of Python 3 is Unicode4. Variables Rules for variable definitions:
Variable names can only be any combination of letters, numbers, or underscores
The first character of a variable name cannot be a number
The following keywords cannot be declared as variable names
[' and ', ' as ', ' assert ', ' Break ', ' class ', ' Continue ', ' Def ', ' del ', ' elif ', ' Else ', ' except ', ' exec ', ' finally ', ' for ', ' F ' Rom ', ' Global ', ' if ', ' import ', ' in ', ' w
not much, nProcess PoolThe process pool maintains a sequence of processes that, when used, gets a process in the process pool, such as a process pool that is not available to use in the song process pool, and the program waits until the process pool has processes availableThere are two methods of process pooling:
Apply (Sync)
Apply_async (asynchronous)
Co-processThe operation of threads and processes is triggered by the program interface, the final performer is the system, the
About Linux Resources I know less, because I hate to use command line (that is the shadow of my college days!). )。 This resource collection has not been shared for a long time, because I know very little about Linux, I do not know how to describe it, but today I would like to share the same as I do not understand and want to learn about Linux small partners to learn.650) this.width=650; "src=" http://www.aliyue.net/wp-content/uploads/2016/05/linux.jpg "alt=" Linux.jpg "/>Directly click on the sm
Answer:Assuming Nginx's installation directory is/application/nginx/sbin/nginx[Email protected] ~]# crontab-e# Timed restart Nginx by Zhangyao at 201707300 * * */application/nginx/sbin/nginx -S Reload >/dev/nullNoteToday is the 105th day of the day to accompany you and look forward to your progress .For questions and answers, please leave a comment in the blog comments section .Index of the topic of the previous periodhttp://lidao.blog.51cto.com/3388056/1914205This article is from the "Lee blog"
Reference Answer:First step-Find the number of the process that corresponds to the port[[email protected]~]#ss-lntup|grep:22tcpLISTEN 0128 :::22 :::* users: (("sshd", 1467,4) tcplisten0 128 *:22 *:* users :(("sshd", 1467,3)) Step Two-show/proc/process number/CWD directory[Email protected] ~]# ls-l/proc/1467/cwdlrwxrwxrwx 1 root root 0 June 01:25/PROC/1467/CWDProcess number/Other commonly used files in this directory:
CWD Symbolic link is the process running directory;EXE symbolic conne
The fourth chapter is about the shell variable knowledge advanced and practice;The fifth chapter is about the numerical calculation practice of variables;The annex includes the source code, please download.The two chapters should pay attention to the relevant matters when studying:1. Note the use of punctuation: for example, single quotes, anti-quotes, double quotes, etc.;2. Note the blank spaces for the spaces you want to leave blank;3. Attention to the role of special variables;4. Use of built
sizeFind/oldboy-type f-name ' *.log '-mtime+7-size +1m|xargs-i MV {}/tmpXargs-i can use {} to move what find finds to/TMP or MV-T/tmpFind/oldboy-type f-name ' *.log '-mtime+7-size +1m-exec MV {}/tmp \;MV-T/tmp $ (find/oldboy-type f-name ' *.log '-mtime+7-size +1m)MV-T specifies that the source file is moved to the destination file without having/tmp backMV ' Find/oldboy-type f-name ' *.log '-mtime+7-size +1m '/tmp' Inverse quotation marks are equivalent to $ () execute the contents of the symbo
Ctrl + Actrl + Ectrl + Cctrl + Dctrl + Lctrl + Uctrl + Kctrl + Rctrl + yAnswer:1.1.1Cursor MovementCTRL + a switch to the command line start CTRL + E to switch to the end of the command line1.1.2Cut PasteCTRL + U Clear (cut) the contents of the cursor before CTRL + K Clear (cut) the contents of the cursor after CTRL + Y paste ESC + F move the cursor to the end of the word ESC + B move the cursor to the beginning of the word CTRL + b the cursor moves the position of a symbol to the left CTRL + Fà
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.