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


3 answers
13 views
0
Python. I'm so curious.

In Python, a = 1 and b = 1 are both the same addresses that point to 1 and a = 1 outside the function For example, in C language, After declaring a function, a = 1 disappears without a return, right?B...

2 years ago

1 answers
14 views
0
What code should I use to prevent removing missing files?

What code should I use to prevent removing missing files?I'd like to know it in a Python way, so please check if it's right for me to useif os.path.exists(filename): os.remove(filename)

2 years ago

1 answers
110 views
0
I'd like to make a date graph

I even made a series of Python counting by date Now, I want to draw a graph of the series in terms of the x-axis and the y-axis in terms of the number Help meThe date form is 2003-12-31 15:34:07.200, ...

2 years ago

2 answers
81 views
0
What role does the module sys play in Python?

import syssrc = sys.argv[1]dst = sys.argv[2]f = open(src)tab_content = f.read()f.close()space_content = tab_content.replace(\t, *4)f = open(dst, 'w')f.write(space_content)f.close()It's a code that ch...

2 years ago

1 answers
62 views
0
Print Braces {}

I want to print {} how do I write it?There's an error in the way I wrote itI want to print it out like {Hello} 42.Key Error: Hello\\x = \{ Hello \} {0} print x.format(42)

2 years ago

1 answers
70 views
0
If the URL changes several times when I log in to the website, how can I get a session with scrapy?

It's my first time imitating Python and Scrappy. When I try to log in to get the information I want,Login page -> Login verification URL1 -> Login verification URL2 -> Desired pageThe URL cha...

2 years ago

1 answers
21 views
0
Can you comment on the corresponding code statement... crying

for i in range(0,4): for j in range(0,4): for k in range(0,8): if boardInfo[i][j]['word'] == picked[k]: boardInfo[i][j]['color'] = k

2 years ago

1 answers
127 views
0
I want to change the encoding of all the strings in the Python list and make them into strings.

Python utf-8 encoding question.Among the crawled data, the data contained in the list field was encoded ('utf-8') ['\xe5\xb0\x8f\xe5\xb7\x9d\xe9\x9f\xb3\xe5\xad\x90']When you output the dictionary val...

2 years ago

1 answers
84 views
0
How do you write binary?

I know that hexadecimal numbers have 0x in front of it, and octal numbers have 0 in front of itSo what do we do to express it's binary


2 answers
14 views
0
I'd like to use a triple gun to output a triple array.

I want to receive a 3D image and output it using a For statement.But it's not been long since I started Python, so I'm confused about how to implement it.Originally, the header value of the image shou...

2 years ago
« - 339 - »

© 2024 OneMinuteCode. All rights reserved.