python Foundation: string (with code)

Write it in the front, Hello everyone! I'm Xlong, an engineering man in a non computer class. Since I have been learning python recently and have taken a lot of notes about python learning, I want to sort out a series of articles about its foundation, which is convenient for my daily review on the one hand, and also want to communicate and lear ...

Posted by dreamkiller23 on Wed, 09 Mar 2022 15:37:41 +0100

Installing Spark and Python exercises

1, Install Spark Introduction to Spark 2.4.0: installation and use of Spark Blog address: http://dblab.xmu.edu.cn/blog/1307-2/ 1.1 basic environment 1.1.1 before installing Spark: Linux system Java environment (Java8 or JDK1.8 or above) Hadoop environment Hadoop installation tutorial address: http://dblab.xmu.edu.cn/blog/install-hadoop/ Follow ...

Posted by imperialized on Tue, 08 Mar 2022 12:13:09 +0100

Interpretation of crowd counting [can] (context aware crowd counting) code

The code reproduction has been completed before, and I will also part in Shanghai tech_ A_ Final and part_ B_ The final dataset results came out. Now do a detailed interpretation of the code to deepen your understanding. If there is anything wrong, please give us more advice!! (this article has read this paper by default and has a certain under ...

Posted by biannucci on Fri, 04 Mar 2022 00:06:12 +0100

Python note 17 - object oriented - inheritance

Python notes Object oriented - inheritance I Introduction to inheritance Inheritance Encyclopedia Python object-oriented inheritance refers to the ownership relationship between multiple classes, that is, the subclass inherits all the properties and methods of the parent class by default. In Python, all classes inherit the ...

Posted by webhamster on Thu, 24 Feb 2022 12:34:57 +0100

[introduction to Python tutorial] basic data types of Python

The essence of a computer is calculation. Internally, it is the change of bits of 0 and 1, and externally, it is the change of data. So what data can computers process? In essence, data is stored in bytes. In terms of performance, they are integers, floating-point numbers, strings and so on. Python's basic data types are no more than this. I ...

Posted by evanesq on Thu, 24 Feb 2022 09:18:43 +0100

Django realizes paging function

In this section, we will introduce the advanced modules provided by Django. Through the study of advanced modules, you will feel that Django is so easy to use, but at the same time it is very complex. Therefore, when learning such a heavy framework as Django, we must remember to be impatient and dare to explore new knowledge, In addition to fol ...

Posted by Motionographer on Sat, 19 Feb 2022 14:21:08 +0100

Python Basics (values, variables, operators)

Python Basics (values, variables, operators) pycharm operation Run: ctrl + f10 Run the current file: ctrl +shift + f10 1, Output functions in Python print() function You can output numbersCan be a stringThe output can be an expression containing an operator The print() function can output the content to the destination monitor file #O ...

Posted by ben2005 on Mon, 14 Feb 2022 15:08:49 +0100

Python notes 6-string

Python notes character string I String introduction 1. Features A pair of quoted strings name1='Jack' name2="Jerry" Three pairs of quoted string name1='''Jack''' name2="""Jerry""" sen1='''I am Jack, nice to meet you!''' sen2="""I am Jack, nice to meet you too!""" Note: string in three quotation marks supports line feed ...

Posted by buddymoore on Sun, 13 Feb 2022 03:04:01 +0100

10 minutes to make open source pip package

1, Understanding PyPI It can be understood that it is a package management platform. All packages we commonly use will be hosted on this platform. Through pip install xx, we will find this package in PyPI and download it to our computer. 2, Process analysis For module developers, there are essentially three things to do: Open the refrig ...

Posted by 5kyy8lu3 on Tue, 08 Feb 2022 06:32:56 +0100

List of common methods for Python learning:

catalogue 1. Add: (1) Method append (): you can add an element (the end) to the list (2) Method insert (): insert the element object before the index at the specified position (3) Method extend(): you can add elements from another collection to the list one by one 2. Change: modify according to the index 3. Check: (1) In: judge whether t ...

Posted by DJH on Fri, 04 Feb 2022 04:05:07 +0100