Answer the question
In order to leave comments, you need to log in
Problem with python import?
I'm new to python, help someone is not difficult, I use the following code:
print('hello world!')
from mutagen.mp3 import MP3
ff = open('D:\\git\\Tropic-Island\\Tropic-Island\\Java\\Projects\\Example\\day of victory 2.m3u8', 'r')
array_of_strings = ff.read().split('\n')
ff.close()
ff = open('D:\\git\\Tropic-Island\\Tropic-Island\\Java\\Projects\\Example\\day of victory 3.m3u8','w')
for i in range(len(array_of_strings)):
f = MP3(array_of_strings[i])
ff.write(array_of_strings[i]+'\n')
ff.write(str(f.info.length)+'\n')
ff.close()
print('hello world!')
Answer the question
In order to leave comments, you need to log in
sudo pip install mutagen
Or in the pycharm settings:
On the right is a plus sign with the hint "Install"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question