python tag

Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.

Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Python consistently ranks as one of the most popular programming languages. It is used by many organizations and companies. Pixar, Disney, Instagram and the developers of the Linux Kernel are among many of it's high-profile users, which includes many developers of Free and Open source software.

Reference: WIKIPEDIA

4650 questions


1 answers
132 views
0
Why does an object inherit?

Why do you inherit an object by writing (object) after its name when declaring a class?Is there a difference that some codes use that and others don't?class MyClass(object): # Class code


1 answers
24 views
0
In the visual studio, the other py cannot be executed within one solution

It's my first time starting Python.First imaging.I was practicing with pywI created note.py to practice another code on another page.But if you press F5, it keeps imaging.pyw begins.So if you right-cl...

2 years ago

1 answers
74 views
0
How can I restore it from the zip?

I use the zip like thislist1 = ['a', 'b', 'c', 'd']list2 = [1, 2, 3, 4]result = zip(list1, list2) #[('a', 1), ('b', 2), ('c', 3), ('d', 4)]The opposite of the zip[('a', 1), ('b', 2), ('c', 3), ('d', 4...


1 answers
47 views
0
Can't you check the entire pixel value of the image array in python opencv?

In matlab, the matrix element values of each variable can be immediately checked.When the image was loaded into the read, it was easy to check the values for each pixel, and When I opened it with the ...

2 years ago

2 answers
58 views
0
Crawling to Beautiful soup displays urllib.error.HTTPError: HTTP Error 302.

urllib.error.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop.The last 30x error message was:Moved TemporarilyThere's an error.Looking at the st...

2 years ago

1 answers
25 views
0
Replace Python Integer with English

Hello, I'm asking for your help in the face of a problem I don't knowThis is a Python program that receives an integer and outputs it in English. For example, Input: 26>>> Output: twenty-two

2 years ago

1 answers
21 views
0
python path setting code question

# python studyimport numpy as npimport cv2#img = cv2.imread('bongdu.jpg')img_nam = C:\Users\jhjoo\Desktop\bongdu.jpgimg_name = img_nam.replace(\, /)img = cv2.imread(img_name)[height, width, channel] =...

2 years ago

1 answers
74 views
0
Python ImportError: No module named 'sympy' error

'''the solution of a linear equation'''from sympy import Symbol, solvex=Symbol('x')expr = x-5-7solve(expr)The program is the same as above There's an error at the bottom. Traceback (most recent call l...

2 years ago

1 answers
63 views
0
Python novice was studying open source.

def commands_arduino(a,b): # a: command, b: times # # Old - '%04d' % (42,) # # New - '{:04d}'.format(42) # # Output - 0042 commands = .join(a for i in range(b)) if a == 'a': # left result = 'a{:03d}'...

2 years ago

3 answers
88 views
0
I'd like to divide the Python first row output and make it second row output.

I wrote the code like this.The bottom of the boundary is the output statement that outputs the data I want. I wrote the code like the top of the border because I wanted to print the result in two colu...

2 years ago
« - 268 - »

© 2024 OneMinuteCode. All rights reserved.