Python object-oriented programming OOP slots, class polymorphism, inheritance, replication methods

_u slots_u Magic Hello, last issue I focused on summarizing the basic knowledge of classes, now I'll briefly review and add a common thing when creating classes: u slots_u First create a human: Celebrity class Celebrity: # Restrict Celebrity objects to name, age,domain attributes only, accelerate __slots__ = ['name','age',"domain"] ...

Posted on Tue, 16 Jul 2019 09:10:36 -0700 by superaktieboy

Material Design Guidelines for Use and Development

Preface Material Design, Chinese name: Material Design Language, is a completely new design language launched by Google. Google said that this design language aims to provide a more consistent and wider "look and feel" for mobile phones, tablets, desktops and "other platforms". Reference resources: Material Design Ch ...

Posted on Mon, 15 Jul 2019 16:29:23 -0700 by highrevhosting

[Java Concurrency] Details ThreadLocal

Preface ThreadLocal is mainly used to provide thread local variables, that is, variables are only visible to the current thread. This article mainly records the understanding of ThreadLocal. More articles on Java multithreading can go to Here. Thread local variables In a multithreaded environment, concurrency problems arise because different t ...

Posted on Sun, 14 Jul 2019 12:40:59 -0700 by vegnadragon

Detailed Explanation of the Realization Process of Image Magnifier Effect

To meet the needs of the project, I wrote a detail page, the effect of the magnifying glass, threw the code on it for learning and sharing, and took daily notes as well. The effect is shown in the figure (in the example, the picture of Tiancat is secretly chained, hopefully nothing happens). -):   The implementation process is easy to teach, b ...

Posted on Sun, 14 Jul 2019 11:08:16 -0700 by nikes90

Python Learning Requests Library

The Requests Library in python is an encapsulated python utility that requests http and returns the corresponding results Initial Requests Library Official Documents http://cn.python-requests.org/zh_CN/latest/ Code Address https://github.com/kennethreitz/requests Requests Environment Preparation Install pip https://pypi.python.org/pypi ...

Posted on Sat, 13 Jul 2019 11:17:21 -0700 by kireol

Use of SurfaceView for Android Custom Camera (6.0 Permission Request)

Preface There has been no update since I was preparing to jump.However, from this month on, I will continue to record some pits I encountered in android development or write interesting articles.I hope you continue to pay attention to it.Okay, get to the point. Summary This time I started to get to know something about Camera, so I decided to ...

Posted on Sat, 13 Jul 2019 09:17:40 -0700 by CSB

Angular 2 + Troubleshooting: (8) Handwriting an unreliable upload component

Preface Upload function plays an important role in any website. This article mainly talks about how to implement an upload component. Design sketch Functions Supported image format (default parameters are used without reference) Supported picture size Pictures will be compressed (front-end) - loaded asynchronously before uploading The ...

Posted on Fri, 12 Jul 2019 19:15:04 -0700 by Zooter

[Android Component Interpretation] Initial exposure to Retrofit

When it comes to web libraries, you think of Google's HuttpUrlConnection and Apache's HuttpClient. Google recommends using HttpUrlConnection instead of HttpClient HttpClient has been discarded in Android6.0 (Tucao: obviously HttpClient is more powerful). To see why HttpClient was abandoned, you can see Why did Google recommend using HttpURLCon ...

Posted on Fri, 12 Jul 2019 12:28:34 -0700 by renekosterman

Custom View - A Demo gives you a thorough grasp of View's sliding conflicts (5)

First picture: The example is a common pull-down rebound in which the entire layout slides together as the fingers slide down. When pulled down to a certain distance, the layout will automatically rebound to the starting position; when the finger slides up, the sub-View of the layout will slide to the bottom, then the finger slides down agai ...

Posted on Fri, 12 Jul 2019 11:14:30 -0700 by mk_silence

iOS File Computing and Cleaning (SDWebImage Extension)

Preface When using SDWebImage to download pictures, it will automatically make a cache for us, which can be taken out directly from the cache next time we use it, instead of downloading again. But general applications will have a function to clear the cache, sometimes pictures, sometimes other things, SDWebImage. Of course, such a powerful fr ...

Posted on Thu, 11 Jul 2019 13:04:43 -0700 by touchingvirus