Automatic drawing of input triangle side length to find area by python

A triangle is a good thing. For example, if you know the length of three sides, you can judge whether you can form a triangle (the sum of two sides is greater than the third side). If you can further calculate its area (Helen's formula), and finally draw the triangle (cosine theorem to find the angle ...

Posted on Mon, 21 Oct 2019 16:03:49 -0400 by aznkidzx

python day 15: IO multiplexing, socketserver source code analysis,

Catalog python day 15 1. IO multiplexing 2. Socket server source code analysis python day 15 2019/10/20 Learning materials from old boys' Education 1. IO multiplexing ''' I/O multiplexing refers to a mechanism by which multiple descriptors (file handles) can be monitored. Once a descriptor is rea ...

Posted on Mon, 21 Oct 2019 11:24:20 -0400 by HDMICable

Django's Daily-1

Catalog Django's Daily-1 The three most commonly used things in Django HTTPresponse render redirect Static file related get and post of form form Magical request Template value transfer method Django connecting database and its powerful ORM Preliminary pr ...

Posted on Mon, 21 Oct 2019 09:50:48 -0400 by kiwibrit

Python student management system

Python student management system function tool Effect display structural analysis Python code Student management system module tools module function Student information entry Student score query Find student information Enter student scores Course average All student information tool JetB ...

Posted on Sun, 20 Oct 2019 17:06:26 -0400 by cdjsjoe

An article to configure Neovim

If you don't speak much, first picture above This is our vim configuration. Because of my technical comparison, if it's a big God, please give me more advice. If it's a small white, I'll take you to my level of neovim. 1. First, we complete the configuration Foundation I'm a manjaro user. We can I ...

Posted on Sun, 20 Oct 2019 13:01:51 -0400 by psytae

[reptile] xpath can't locate tbody tag

Test library: lxml library; link link: http://www.sxchxx.com/index-13-1075-1.html Problem finding I prefer to use xpath to parse the web page, but I often get an empty list. 1.1 etree.HTML from lxml import etree import requests url = 'http://www.sxchxx.com/index-13-1075-1.html' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win6 ...

Posted on Sun, 20 Oct 2019 10:06:14 -0400 by dizzy1

python basics -- three ways to format strings

Format 1 of string: = Grammar explanation: info='My name is%s,My age is%s'%(name,age) % Is placeholder. s Have the ability of default conversion, use str()Function for string conversion d Convert to signed decimal number f Convert to floating point number (the decimal part is naturally truncated) x Convert to unsigned hexadecimal number( x/X ...

Posted on Sun, 20 Oct 2019 09:54:19 -0400 by hanpedro

Variable and immutable objects, shallow and deep copies in Python

Python objects are divided into variable and immutable. It is necessary to understand that this will affect the assignment and copy of Python objects. But the copy also has the depth difference. Immutable object In short, when an object is stored in memory, the value in this memory cannot be changed. Variables point to this memory. If you wan ...

Posted on Sun, 20 Oct 2019 05:49:03 -0400 by cavedave

How to customize a sweater for programmers

Tired of the boring mechanical repetitive assembly line work, every day is interrupted from time to time, I don't know when I will be surrounded in a group, and then I have to urgently support a thing. There are too many regional tasks, and there is no time to do the main tasks planned in the morning meeting, and many things are logically respo ...

Posted on Sun, 20 Oct 2019 01:13:57 -0400 by mie

Explanation SP4033 [PHONELST - Phone List]

Water engine trie board~ Let's talk about how to put this question on the board first First of all, we can judge whether there is a prefix that can be inserted at the same time. When we go through a complete string (that is, the current node goes to a marked node) There's a prefix. Of course, we can judge a hair without brains (like me) And the ...

Posted on Sat, 19 Oct 2019 18:05:27 -0400 by jbille