Circle problem: 
  For integer operations, one important thing to understand is that it rounds down the result, that is, the value after rounding is not greater than the actual value. Therefore, if the result is negative, the rounded result will be farther from zero, such as – 3.3 rounded result is – 4. This means that the -10 / / 3 will be rounded down to the top.-4, instead of rounding up to -3.
>>> 10 // 3
3
>>> 10 // -3Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â The 10 / / 3 rounding in the left code is 3; -10 / 3.
-4Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â...
html1=”””<!DOCTYPE html><html lang=”en” xmlns=”http://www.w3.org/1999/xhtml”><head> <meta charset=”utf-8″ /> <title>My first web page is < /title> <meta name=”generator” content=”EverEdit” /> <meta name=”author” content=”” /> <meta name=”keywords” content=”” /> <meta name=”description” content=”” /></head><body> <div class=”rows”>...
Fluent python (password: fil0)
Author: [Brazil] Luciano Ramalho
Brief Introduction: This book is written by Luciano Ramalho, a Python developer who has been struggling for nearly 20 years in Python, and is written by Victor Stinner, Alex Martelli, and other Python technical reviewers to analyze programming details from a language design perspective.Python 3 and Python 2, tell you the causes and solutions of language pitfalls that you can’t understand without hands-on Python practice, and teach you to write genuine Python code.
Â
Django( Password: 7cyg)
Â
Full stack performance test...
This article is used to record standard modules in Python and update at any time.
decimalModule (solving fractional circulation problem):
>>> import decimal
>>> a = decimal.Decimal(‘10.0’)
>>> b = decimal.Decimal(‘3’)
>>> a / b
Decimal(‘3.333333333333333333333333333’)
Â
fractionsModule (solving fractional presentation problem):
>>> from fractions import Fraction
>>> Fraction(10, 3)
Fraction(10, 3)
>>> Fraction(10, 4)
Fraction(5, 2)
>>> Fraction(6, 2)
Fraction(3, 1)
Â
Based on Dapper, we encapsulate an easy-to-use ORM tool class: SqlDapperUtil, which simplifies and encapsulates all kinds of CRUDs that can be used everyday, so that ordinary programmers only need to pay attention to business, because it is very simple, so we can paste the source code directly, if we need to use it, we can directly encapsulate it.Copied to the project, the SqlDapperUtil has been widely used in company projects.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using System.Data;
using Syst...
var Lb = false; var Ub = false;
function rotate(obj) {
if (obj == "L") {
if (Lb == false) { //For the first time
document.getElementById("img1").classList.add("flipx");
} else {
document.getElementById("img1").classList.remove("flipx");
}
Lb = !Lb;
}
if (obj == "U") {
if (Ub == false) { //For the first time
document.getElementById("img1").classList.add("flipy");
} else {
...
This article is used to record standard class libraries in Python. The contents of this article are updated at any time.
math(Mathematical operations):
>>> import math
>>> math.pi
3.141592653589793
>>> math.ceil(5.2)
6
>>> math.floor(9.9)
9
>>> math.pow(4, 2)
16.0
>>> math.sqrt(9)
3.0
>>> math.fabs(-2)
2.0
>>> math.fmod(5, 3)
2.0
Â