Python development tank battle

Python can not only develop websites and reptile data analysis, but also write games. Next, we will share the code of tank war: PS: in the process of learning python, many people often give up because they can't solve problems or don't have good tutorials. Therefore, I sorted out the basic Python script, web development, crawler, django, data m ...

Posted on Tue, 18 Feb 2020 01:46:50 -0800 by vh3r

Some programming skills for beginners of Python

This article mainly introduces some programming skills for beginners of Python, which are based on some basic programming habits. Please refer to Exchange variables x = 6 y = 5 x, y = y, x print x >>> 5 print y >>> 6 if statement in line print "Hello" if True else "World" >&g ...

Posted on Mon, 10 Feb 2020 07:46:41 -0800 by inversesoft123

js recursive call

Programmers not only have the logic and code in front of them, but also the underlying framework and architecture. 1. Preface Recently, we are doing a complex table design data format setting, which uses the principle of multi fork tree, so we need to use recursion to realize data format. 2. The concept of recursion ...

Posted on Sat, 25 Jan 2020 07:57:56 -0800 by PallaviDalvi

Spring boot uses embedded containers. How to configure a custom Filter

Listener, filter and Servlet are three components commonly used in Java Web development. Filter is the most frequently used component, which is often used for simple permission processing, request header filtering and XSS attack prevention. If we use the traditional Spring MVC for development, we only need to configure the following in Tomcat's ...

Posted on Fri, 10 Jan 2020 03:51:06 -0800 by Ellen67

Lay UI data interface exception

Today, I met a problem in web development. I looked up a lot of questions: ① format problem of lay UI data table ② format problem of json First, look at the js format of the data table, where url is the path of your background data interface (the path of a specific method in the background). If there is an id, its value is the ...

Posted on Tue, 31 Dec 2019 08:39:50 -0800 by lynx2003

How js implements observer pattern

Definition: observer mode, also called publish subscriber mode, also called message system, also called message mechanism, also called custom event, solves the coupling problem between the subject and the observer Characteristic: 1. Solve the coupling problem (between classes, between objects, between classes and objects, bet ...

Posted on Sun, 15 Dec 2019 06:39:25 -0800 by dean7

On the problem of image center in html

On the problem of image center in html fox has done such an experiment in learning HTML in web development. Here is the specific code of the experiment <style type="text/css"> #t1{ font-size: 26px; text-align: center; } #t2{ width:588px; margin: 0 auto; text-indent: 2em; border: ...

Posted on Sat, 14 Dec 2019 11:49:17 -0800 by lnt

Two lines of code for blog traffic statistics

My blog has visitor statistics function. Let's see the effect Original count code <!-- No garlic count --> <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script> <span id="busuanzi_container_site_pv" >| Total traffic <span id="busuanzi_value_site_pv"></span> ...

Posted on Fri, 13 Dec 2019 09:36:56 -0800 by slpctrl

jquery.multiselect2side usage and file download

The first step is to introduce the jquery file and the js file and css file of the plug-in         <script type="text/javascript" src="js/jquery.min.js" ></script>         <script type="text/javascript" src="js/jquery.multiselect2side.js" ></script>         <link rel="stylesheet" href="css/jquery.mu ...

Posted on Fri, 13 Dec 2019 07:37:42 -0800 by member123

How to make a custom Validatebox validation box for easyUI

How to realize and function Override the default defaults with $. fn.validatebox.defaults. The validate box is designed to validate the input fields of the form. If the user enters an invalid value, it changes the background color and displays warning icons and prompt messages. The validatebox can be integrated with the form plu ...

Posted on Thu, 12 Dec 2019 14:00:22 -0800 by amylisa