Python -- function & procedure

The difference between functional programming and procedural programming: a procedure is a function without a return value. A procedure also has a return value in Python 3, which is None Functions: reuse code, keep code consistent, and make code easier to expand Procedure definition and call: 1 def func2(): 2 """testing2""" # Description o ...

Posted on Sun, 24 May 2020 11:23:27 -0400 by kburger

Three layer link bundle instance

1, Experiment of link bundling to realize redundant function1. Set two ordinary routers, two switches and four PC s on the Huawei simulator enspFirst, open ensp, create two routers and two pc users, and connect them with network cables, as shown in the following figure Configure LSW1 LACPConfigure lacp [SW1]lacp priority 1000 [SW1]int Eth-Tru ...

Posted on Wed, 20 May 2020 11:07:40 -0400 by Japher

WeChat official account data grab

1. grab all the files of a official account. Charles + wechat for computer + pycharm+python   2. Analysis After analysis: every official account list page is connected. At the beginning of https://mp.weixin.qq.com/mp/profile_ext, only a few references to each official account are taken at the time of grasping. Grab:   3. Code impo ...

Posted on Thu, 07 May 2020 12:00:02 -0400 by stuartbates

WeChat official account data grab

1. grab all the files of a official account. Charles + wechat for computer + pycharm+python   2. Analysis After analysis: every official account list page is connected. At the beginning of https://mp.weixin.qq.com/mp/profile_ext, only a few references to each official account are taken at the time of grasping. Grab:   3. Code impo ...

Posted on Thu, 07 May 2020 11:47:39 -0400 by theironchef

NS2 network simulation process

The process of NS2 network simulation can be summarized as follows:1. InitializationCreate ns simulatorCreate. tr file (record simulation results)Create. nam file (record simulation process)Set end functionSet parameters required in simulation2. Create simulation topologyCreate nodeCreate and set up linksSet the arrangement of links in nam3. Cr ...

Posted on Mon, 04 May 2020 06:06:26 -0400 by BoukeBuffel

Glide's three-level cache

In fact, there are three levels of cache for glide: memory cache, local cache and network cache. Why do I need to do level 3 caching? Because android allocates 16M memory to every application by default. If too many pictures are loaded, in order to prevent memory overflow (in fact, we need to distinguish the concept of memory leakage). The spec ...

Posted on Thu, 30 Apr 2020 04:20:22 -0400 by tycoon79

In depth understanding of the principle of Flutter animation

1, Overview []( http://gityuan.com/2019/07/13/flutter_animator/# I. overview) Animation effect is very important for the user experience of the system. Good animation can make the user feel the interface more smooth and improve the user experience. 1.1 animation type []( http://gityuan.com/2019/07/13/flutter_animator/#11- Animation type) There ...

Posted on Mon, 27 Apr 2020 05:33:23 -0400 by onlinegs

Azure IoT intermediate - (case 3) device registered to IoT Hub after passing X509 certificate and DPS verification

Case - after the device passes the X509 certificate and is verified by DPS, it registers with IoT Hub and starts to communicate   Steps of this case: Note that the first two steps have been covered in the previous chapter, and this article begins with step 3. 1. Generate CA Root certificate through openssl and Microsoft sample Powershell scrip ...

Posted on Sat, 07 Mar 2020 17:16:14 -0500 by poelinca

iOS file management

1, Sandbox mechanism in iOS iOS applications can only read files from the file system they create. This independent, closed and secure space is called sandbox. It generally stores package files (executable files), pictures, audio, video, plist files, sqlite database and other files. Each applicatio ...

Posted on Thu, 05 Mar 2020 04:23:20 -0500 by Seaholme

CUDA: accelerating applications with CUDA C/C + + (NVIDIA course)

The foundation of C/C + + accelerated computing With the technology and tools you have now, you are close to getting ready to start accelerating your actual applications. This section will provide you with the following details: a. Set up your own CUDA environment b. How best to continue learning in d ...

Posted on Fri, 14 Feb 2020 05:04:13 -0500 by ljCharlie