Ubuntu устанавливает отказ ноутбука Toshiba

Вы могли бы нам python.

Сохраните следующее в файле с именем join.py в своей домашней области:

ffile=open('FirstFile.txt','r').read().split('\n')       # Open the first file, read it and split it into a list at the newline character
sfile=open('SecondFile.txt','r').read().split('\n')      # Open the second file, read it and split it into a list at the newline character
minlen=min(len(ffile),len(sfile))                        # Get the lengths of both, and return the minimum so it doesn't break if they are different lengths.
ofile = [] # Create an empty list.    

for i in range (minlen):                                 # Loop for the length of the shortest list.
    ofile = ofile + [ffile[i]+sfile[i]]                  # Add the first item of the first list (the first line of the first file) to the first item of the second list (the first line of the second file).

outfile=open('outputfile','w')                           # Create an output file, called outputfile.txt in your home directory

outfile.write('\n'.join(ofile))                          # Write to the output file.

, затем запустите его с помощью

python join.py
1
задан 4 December 2017 в 07:06

3 ответа

Сначала я установил sda1, раздел EFI. Вы можете проверить ваш с помощью
sudo fdisk -l
и установить его с помощью
sudo mount /dev/sda1 /mnt
. В этом установленном разделе sda я скопировал grubx64.efi и shimx64.efi с /EFI/ubuntu на /EFI/Boot.
0
ответ дан 22 May 2018 в 15:42
Сначала я установил sda1, раздел EFI. Вы можете проверить ваш с помощью sudo fdisk -l и установить его с помощью sudo mount /dev/sda1 /mnt . В этом установленном разделе sda я скопировал grubx64.efi и shimx64.efi с /EFI/ubuntu на /EFI/Boot.
0
ответ дан 18 July 2018 в 01:59
Сначала я установил sda1, раздел EFI. Вы можете проверить ваш с помощью sudo fdisk -l и установить его с помощью sudo mount /dev/sda1 /mnt . В этом установленном разделе sda я скопировал grubx64.efi и shimx64.efi с /EFI/ubuntu на /EFI/Boot.
0
ответ дан 24 July 2018 в 17:29

Другие вопросы по тегам:

Похожие вопросы: