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
18 views
0
TypeError: can only concatenate str(not "NoneType") to str error using stack to reverse string

I'm a Python beginner.I have a few questions about the code listed below.reverse=reverse+stack.pop() appears to have the following error:TypeError: can only concatenate str(not NoneType) to strWhy do ...

2 years ago

2 answers
163 views
0
Slow GPU, underutilized in tensorflow 2.1

I'm learning my own game using pygame in python on windows with GPU, but it's not as fast as I thought, and when I look at GPU utilization in Task Manager, I don't know if it's used properly at 3-5% a...

2 years ago

1 answers
36 views
0
No such file or directory when the Python program is saved and run on the terminal

I'm a huge beginner.After entering the command as per the book Python, CC saved it as draw_tree.py on the desktop, but typing $pythondraw_tree.py on the terminal did not launch the title as per the bo...

2 years ago

1 answers
134 views
0
Related files are also present in directories not installed in Anaconda

I installed Anaconda in a directory called E: ¥anaconda3.Navigator and prompt were saved in that directory, but the following files that might be related were saved under C: ousers 。.conda.continuum.i...


2 answers
22 views
0
ModuleNotFoundError in Python library called plot

The following code appears in the book matrix programmer, but if you do this, you will get the error ModuleNotFoundError: No module named 'plotting'.Is this library no longer available?Or is it wrong ...

2 years ago

1 answers
124 views
0
I don't understand the movement of the x button (close window button) on the tkinter and the button I created myself.

The goal is to retrieve the value entered in the text box from the GUI image and write it to a CSV file.It consists of a screen source file (tkinter.py) and a source file (merge.py) for writing to CSV...

2 years ago

1 answers
133 views
0
torch.autograd.grad becomes 0 or NoneType

Calculating the partial differentiation of torch.autograd.grad in the code below will result in None.I can't see the contents of torch.autograd.grad, so I wonder if there is any problem during the par...


1 answers
137 views
0
I want to write the sentences written in the tsv file with spaces and store the words in each sentence as nested structural lists.

I read the tsv file and put the ID and word in each line to make a space.I don't know the code to list only words in each sentence.[[['word', 'word', 'word', ['word'...]...]]in the form Can someone te...


1 answers
122 views
0
Python wants to convert CSV file to YAML, but it doesn't print well

Python wants to convert CSV to YAML, but it doesn't output as expected.version, 3services,db,container_name, atcoder-stream-dbimage, postgres: 12.1express, -5432web-backend,container_name, atcoder-str...

2 years ago

1 answers
86 views
0
Understanding the Maximum Matplotlib.pyplot.plot Value

I'm going to use the posting method to display the graph, but by default, the graph is small, so I increased the graph size by pyplot.figure(figsize=).However, although it grows to a certain extent, i...

2 years ago
« - 96 - »

© 2024 OneMinuteCode. All rights reserved.