• Python code reading (Chapter 43): constructing composite functions


    Introduction to Python code reading collection:Why not recommend Python beginners to look directly at the project source code The code read in this article implements the construction of composite functions that call input functions in turn. The code snippet read in this article comes from30-seconds-of-python。 compose from functools import reduce def compose(*fns): return reduce(lambda f, […]

  • Introduction to python (XVIII) Linux


    Editor:LonelyrootsSometimes you will lose yourself if you take care of others’ feelings too much!Don’t be blinded by the happiness in front of you. There is usually pain hidden behind the happiness.Everyone envies others’ natural and unrestrained, but they can’t do what others can do.If you know the former me, you will know that I am […]

  • Python crawler: collect information about popular movies, analyze whether they are good-looking, and take the goddess to see them at the weekend!


    1、 Foreword After a while, the goddess asked me to go to the movies, but she didn’t know what to watch, so of course I had to prepare~ 2、 Preliminary preparation 1. Software used Python 3.8 open source free (Unified 3.8) Pychart yyds Python’s best editor does not accept refutationI put all the software here:Software […]

  • Learning resource record of Shin Shin blog (long-term update: March 28, 2022)


    It mainly records the blog addresses of some senior students for learning and inquiry.Some blogs and forums I use frequently are not recorded here because they are often used. Remember. You can search by yourself, such as the skill tree of Shengxin, the novice group of Shengxin, the blog of teacher chenlianfu and Biostar, etc. […]

  • Nexttick in vue2.6.11


    if (typeof Promise !== ‘undefined’ && isNative(Promise)) { const p = Promise.resolve() timerFunc = () => { p.then(flushCallbacks) // In problematic UIWebViews, Promise.then doesn’t completely break, but // it can get stuck in a weird state where callbacks are pushed into the // microtask queue but the queue isn’t being flushed, until the browser // […]

  • Java encapsulating SDK and using


    Create project Create a new Maven project Add packaging plug-in staypom.xmlAdd the following to <build> <finalname> packaged project name </finalname> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <!– Packaging will also depend on packaging –> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> </plugins> </build> The code is written as usual […]

  • Front end performance optimization summary


    Gzip compression Gzip has high compression efficiency and can achieve 70% compression rate //NPM I -d compression webpack plugin installation plug-in dependencyconfigureWebpack: config => {const CompressionPlugin = require(‘compression-webpack-plugin’)config.plugins.push(new CompressionPlugin())} Remove the console log In a production environment, you do not need to print logs. By configuring the webpack, the console is automatically removed during packaging […]

  • 7. ordinary road – dynamic SQL statement


    Dynamic SQL statement is one of the cores. Here we will demonstrate it through several examples I. multi condition query topics 1. complete dynamic SQL statements through identities If tag involved <mapper namespace=”com.shxt.model.User”> <resultMap type=”com.shxt.model.User” id=”BaseResultMapper”> <id column=”user_id” property=”user_id” /> <result column=”user_name” property=”user_name” /> <result column=”sex” property=”sex” /> <result column=”money” property=”money” /> <result column=”birthday” property=”birthday” […]

  • Fishing at work and network security


    If you don’t fish at work, you have no soul in this class. However, the Gome network monitoring incident that broke out not long ago also reminds us that there are risks in the network and we should be cautious in fishing.   https://baijiahao.baidu.com/s?id=1716730797543887197&wfr=spider&for=pc    – “the head of the Technology Department of another state-owned enterprise […]

  • What is the implementation of golang code? Go language original


    This book explains:changkun.de/golang/ Go language original Content based ongo1.14 The go language has a history of more than ten years since its birth in 2009. In the course of this decade, the popularity of go language has gradually increased, and the go language team is continuously releasing a new go version every six months. Looking […]

  • Record the use of feign to report feign FeignException: status 404 reading


    This article is just a bug solution record made by the author. The source of problems encountered by each person may be different, which is of little reference value.Today, when learning the feign service call, the spring boot is started after the configuration is completed. The result is an error. The error content shows that […]