python2 tag

15 questions


1 answers
188 views
0
How to Resolve IndexError

I think some int type is missing...error messageTraceback (most recent call last): File/Users/ymtk/Desktop/pyaudio/mfcc.py, line 109, in<module> mfcc = MFCC (stf.SPEC.shape[1]*2, stf.frequency) ...

2 years ago

2 answers
176 views
0
I want to move google-cloud-sdk.

Regarding the following environment, I would like to run Google-cloud-sdk.$python-VPython 3.6.8:: Anaconda, Inc.$ conda-Vconda 4.6.8$ cat/etc/os-releaseNAME=UbuntuVERSION=18.04.1 LTS (Bionic Beaver)Py...


1 answers
146 views
0
Executing exe Error Using PyInstaller on Windows 10

I used PyInstaller to exe the Python script in Windows 10.However, when I tried to run the exe, I got the following error: C:\*********\dist\********>**********--arg 1123Traceback (most recent call...


1 answers
84 views
0
What are the advantages of python's built-in function compile?I don't know when it will be used.

I use python for my work, but I haven't been able to pursue python deeply yet.While I was reading the source of a python library, I found a built-in function called compile, and I understood how it wo...

2 years ago

2 answers
158 views
0
os.madeirs takes time to actually create a directory

I searched including overseas sites, but I couldn't find a valid solution.Could you lend me some advice?Operating System: Windows When you create a directory using os.madeirs(), it takes a little time...

2 years ago

1 answers
163 views
0
OpenCV Error in Python 2.7.6

Load data from OpenCV.However, the following error occurred when compressing the image to size 28x28.Error ContentsOpenCV Error: Assertion failed(ssize.area()>0) in resize, file/build/build/opencv-...

2 years ago

2 answers
173 views
0
I want to write a regular 20-line, 24-column horse racing data sheet to CSV using beautifulsoup.

Thank you for your help, I'm a python beginner. I'm scraping horse racing data using python 2.7, beautiful group, but I'm having a hard time. I can print only one line, but I don't know which script t...


2 answers
134 views
0
The Python version changes the behavior of the is operator in the tuple.

The is operator behavior of the tuple changes depending on the version.[Code used for verification] x=1,2,2print(id(x))y = 1, 2, 2print(id(y))print(x is y)[Results] Python 2.7.17 Results (xisy is Fals...

2 years ago

1 answers
106 views
0
I want to be able to scroll in Tkinter

Thank you for your continuous support.Using Python 2.7's Tkinter, the GUI app scrolls You can do it (scroll the whole thing like when you look at a browser)I want to add a function.I tried to refer to...

2 years ago

1 answers
122 views
0
I don't really understand this error, do you mean there are two arguments?

#!/usr/bin/env pythonimport numpyimportosimport structureimport sysclass STF: def__init__(self): self.endian='>' self.chunks=['APSG'] defloadfile(self, filename): with open(RESULT20191219.txt, '...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.