Chinese University MOOCPython language programming (Beijing University of Technology) week 5-6 study notes and after-school exercises

Week 5 function and code reuse 5.1 definition and use of functions Use the reserved word def to define the function and lambda to define the anonymous function Optional parameters (initial value), variable parameters (* b), name transfer The reserved word return can return any number of results The reserved word global declaration uses gl ...

Added by jwer78 on Wed, 09 Mar 2022 16:06:40 +0200

Sohu Video iOS team Objective-C coding specification

Sohu Video iOS team Objective-C coding specification introduce There have been different coding methods and habits in the team for a long time, resulting in different coding styles of modules in the code, reducing readability and maintainability. It is decided by the team Zhang Ke,Li Hongli Write this specification. Be sure to abide by relev ...

Added by Mindwreck on Thu, 03 Mar 2022 22:53:44 +0200

Go code specification sorting

Go Code Review Summarize several code specification errors that are often made in the development process Reference link: https://learnku.com/go/wikis/48375 Comment statement // Request indicates the request to run the command. type Request struct { ... // Encode writes the JSON encoding of req to w. func Encode(w io.Writer, req *Request) { ...

Added by mcdsoftware on Thu, 27 Jan 2022 02:37:53 +0200

Front end code specification - JavaScript style guide

Front end code specification - JavaScript style guide Based on github project [airbnb](https://github.com/airbnb/javascript "airbnb") translation also adds some personal understanding. The specification helps us better improve code readability and avoid some unnecessary bug s. leleshuo 1. Object 1.1 create objects using litera ...

Added by kerching on Sat, 22 Jan 2022 08:40:13 +0200

Introduction to code -- variables

Novice on the road, please give more advice and welcome communication. Some examples in the article may not be very good, welcome to correct; This article discards the order temporarily, and then arranges it when free This article can find a complete text description in code Daquan 2. This article just briefly records my reading experienc ...

Added by jkatcherny on Wed, 05 Jan 2022 00:31:50 +0200

Python code writing specification

Python code writing specification I've been writing some recently Python The program has not specifically understood the code writing specifications before. Here, some specifications are sorted out to be more in line with the industry specifications and conducive to reading by yourself and others. Summary of key points Requires 4 space inde ...

Added by kirk112 on Sun, 26 Dec 2021 18:50:21 +0200

equals and = = Application and difference (in-depth understanding of source code)

equals and = = Application and difference (in-depth understanding of source code) Double equal sign (= =) Two cases of double equal sign comparison For the = = sign, only two cases need to be considered: The basic data type uses = =, comparing valuesThe reference data type is = =, which compares the (heap) memory address of the object s ...

Added by rReLmy on Tue, 23 Nov 2021 23:21:24 +0200

[programming art] design C language interface in handle form

Welcome to my official account, and get more of my notes.   O_o   >_<   o_O   O_o   ~_~   o_O   this paper introduces how to design C language interface in the form of handle.   interface design is essential in the implementation of collaborative development projects. For C + +, there are many interfaces using class member fu ...

Added by dror_israel on Fri, 15 Oct 2021 00:55:16 +0300