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


2 answers
73 views
0
Python Repeated Variable Declaration

array1 = np.array(img[y+1,x])array2 = np.array(img[y+2,x])array3 = np.array(img[y+3,x])array4 = np.array(img[y+4,x])array5 = np.array(img[y+5,x])array6 = np.array(img[y+6,x])array7 = np.array(img[y+7,...

2 years ago

1 answers
42 views
0
How to hand over information to a program organized in C with Python

I'm making a multi-threading program in C language. Python can't do it because it has quite a lot of computation. Most of all, we've implemented all of the key functions.This C language program needs ...

2 years ago

1 answers
125 views
0
How do I install psycopg2 with pip?

You must install psycopg2 in virtualenv.pip install http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda814160It's installed withI don't know what's wro...


1 answers
14 views
0
Python partial string questions, please.

I'd like to take two strings and check if the first string is a partial string of the second string.ex) First sentence: Bad person The second sentence: I am a bad person. I'm a bad person. First sente...

2 years ago

1 answers
117 views
0
(Python) To find a mistake in a text file

fname = input('Enter the file name: ')try : fname = open(fname)except : print('Wrong file name') exit()for line in fname : line = line.rstrip() if line.startswith('X-DSPAM-Confidence: 0.8475') : prin...

2 years ago

1 answers
98 views
0
Python psycopg2 library fetchall() list data output method?

fetchone() is data[0] output and fetchall() is data[0] output ('data1',).For fetchphone(), you cannot import data1, data2 because you import only one line of the table gel.So data1,data2 is imported, ...


1 answers
73 views
0
Question for dividing Python list.

Hello, I'm a beginner in programming. I want to divide the elements in the list into random sizes, what should I do? a = [ 1, 2, 3, 4, 5, 6, 7, 8]#At the time of outputa = [[1,2],[3,4,5],[6,7],[8]]a =...

2 years ago

1 answers
45 views
0
Selenium no such element error

HelloI'm a student trying to crawl from Python to Selenium.I'm going to click on the era illustrated in the Asahi Newspaper Database. Attempting to access via xpath.First of all, xpath is twoI tried t...

2 years ago

2 answers
16 views
0
I want to change the tuple value to the intro value, but I have a question.

a = [('2019-05-01',),('2019-05-02',)...(n)] #sqlitedatetupleb value to be modifiedb = ((2019, 5, 1), (2019, 5, 2)...(n)) #Calendar date tuple fixed value not changedfor i in range(len(a)): print(''.jo...

2 years ago

2 answers
47 views
0
Can a non-major create a web service?

A non-major can use django python to use Instagram or Twitter Can we create a web service?If possible, how long will it take to learn and make a language?And a beginner can learn to build a website wi...

2 years ago
« - 335 - »

© 2024 OneMinuteCode. All rights reserved.