python to go learning notes -- functions
function
//Basic grammar
func Function name (parameter list ) (Return value list) {
Function body
}
The naming rules of functions follow the identifier naming standard. Functions with uppercase letters can be used by this package file and other files, similar to public; Files with lowercase initials can only be used by this package, whic ...
Added by yanjchan on Wed, 23 Feb 2022 04:31:22 +0200
Learning notes from python to go -- common functions
String function
The common system functions and built-in functions in string are not very different from those in python, and their names are also very similar
**Len function: * * returns the length of the string. Unlike python's len() function, golang is utf-8 encoded, so Chinese characters will become three lengths.
func main() {
str : ...
Added by lansing on Wed, 23 Feb 2022 04:20:02 +0200
Django template development & rewriting & using bootstrap
Django template development & rewriting & using bootstrap
This paper uses Django's own template system
base.html
Django's template system is inseparable from base Html is a template file, which is equivalent to a large framework. It is spliced through various block blocks, which is similar to vue's template.
You can do it at ba ...
Added by hatching on Wed, 23 Feb 2022 04:06:56 +0200
Python notes 16 - object oriented Basics
Python notes
Object oriented Foundation
I object-oriented
Object oriented Encyclopedia
II Classes and objects
1. Classes and objects
Encyclopedia of classes and objects
class
Encyclopedia like
Class is a general term for a series of things with the same characteristics and behavior. It is an abstract con ...
Added by genie on Wed, 23 Feb 2022 02:37:25 +0200
Python file operations
1, python open file: built in function open
File operation: open (parameter 1, parameter 2, parameter 3) -- other parameters are generally not used. See the notes for details Parameter 1: specify file Parameter 2: open model r: Read a: Append write. If it does not exist, it will be automatically created w: Overwrite write. If it does not exist ...
Added by aarchaic on Wed, 23 Feb 2022 02:08:23 +0200
Have you really done push ups? Dare you test it with Python
preface:
At the Winter Olympics, Gu ailing "soared to the sky", Su Yiming "A blockbuster", the dream team of short track speed skating "forge ahead"... The athletes' spirit of challenging the limit and climbing the peak has aroused the enthusiasm of countless audiences!
These athletes who ignite the Winter Olympi ...
Added by BuckeyeTheDog on Wed, 23 Feb 2022 02:04:02 +0200
Notes on Chapter 5 of Tango With Jango2 -- Model & DB
Django uses object relational mapper (ORM) ¹ To access the data stored in the database
In essence, the data stored in the database table is encapsulated by the Django model. A model is a python object that describes database table data. Django provides some methods that allow you to manipulate data through corresponding Python model objec ...
Added by shashiku on Tue, 22 Feb 2022 22:31:24 +0200
Graphical python | list
Author: Han Xinzi@ShowMeAI Tutorial address: http://www.showmeai.tech/tutorials/56 Article address: http://www.showmeai.tech/article-detail/77 Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the source
1.Python list
Sequence is the most basic and common data structure in Python. Each elemen ...
Added by disenopop on Tue, 22 Feb 2022 19:57:50 +0200
Using artificial intelligence to predict the LEGO trademark size of LEGO packaging, in-depth research has made amazing discoveries
Introduction: I wonder if you will have a whim one day. Do you want to know whether the size of the classic red background and white LOGO on Lego packaging is standard and unified, or did the designer drag it out with PS?
The author came across an article: Have you ever thought about whether the LEGO trademark size of LEGO packaging is random? ...
Added by cityboy101 on Tue, 22 Feb 2022 17:16:30 +0200
For Python diagram
Author: Han Xinzi@ShowMeAI Tutorial address: http://www.showmeai.tech/tutorials/56 Article address: http://www.showmeai.tech/article-detail/72 Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the source
1. Python for loop statement
There are many sequential data structures (such as lists or s ...
Added by alexcmm on Tue, 22 Feb 2022 16:17:48 +0200