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
33 views
0
How to Set the Output Type of Complex Number Calculation (a+jb+c+jd; a, b, c, d:real)

The output of the complex number calculation (a+jb+c+jd;a,b,c,d:real) is 1.23-0j.How do I print 1.23? # Not an array.

2 years ago

1 answers
17 views
0
How to match the stored name of np.savetxt to the number in the programming.

In the programming below (sorry for the scribbling) n1 = 1 whennp.savetxt(data-1(value of n1).csv, data_del, delimiter=,)n1 = 2 whennp.savetxt(data-2.csv, data_del, delimiter=,)...I've repeatedly manu...

2 years ago

1 answers
76 views
0
How to encode Japanese in Python 3-MeCab

Environment: Python 3.5.2, MacOS Sierra Below is a code that reads Excel data, creates a string, and uses ReCab to indicate nouns and number of appearances.import pandas as pdimport MeCabimport sysdf=...

2 years ago

1 answers
102 views
0
TypeError: Unsupported type error when creating autoencoder in Chainer

I'm trying to make a self-encoder with Python using a Chainer.I wrote and executed the following code:class Autoencoder (Chain): def__init__(self): super().__init__() with self.init_scope(): self....


1 answers
76 views
0
Modules and Methods Do Not Color When Writing Python Files in VSCode

I am writing Python code in VSCode.Up until now, modules and methods have been colored, but on a new PC, they will remain white.I use two PCs (Windows 10, Linux Mint) and I don't remember fiddling wit...

2 years ago

1 answers
71 views
0
Understanding Python 3 JSON's In-Dict List Operation_2

This is the person who asked me a question on here.I am writing to ask you to tell me the solution again.Thank you for your cooperation.jsonFile.json{Site Name 1: [URL 11, URL 12, URL 13, ... URL 1n,S...

2 years ago

1 answers
19 views
0
How do I extract common characters from two strings and eliminate duplication?

Problem: Print common characters for two strings (no duplication) word1=input('Enter a word(1)') word2 = input('Enter a word (2)') common_char='for c1 in word1: for c2 in word2: pass # Please write...

2 years ago

1 answers
104 views
0
I want to extract only text in list format from tag list extracted by BeautifulSoup

from bs4 import BeautifulSoupr=requests.get(***************)soup = BeautifulSoup(r.content, html.parser)class=soup.find_all(div, class_=word)At this rate, scraping will remain in the list surrounded b...


1 answers
68 views
0
WebAPI Runs "connection-refused" from Android Device

I implemented a WebAPI in GAE/PY (standard environment).I ran this WebAPI from an Android device.connection-refused.I have checked the following, but what do you think is possible?Also, is there a con...


2 answers
92 views
0
I want to read multiple json files and make a list

There are a large number of files, such as:#001.json{ id—1, name: hoge}#002.json{ id—2, name: fuga}I'd like to load them and create the following objects:[ { id—1, name: hoge }, { id—2, name: fuga...

« - 152 - »

© 2024 OneMinuteCode. All rights reserved.