Skocz do zawartości
View in the app

A better way to browse. Learn more.

Max3D.pl

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Napisano

potrzebuje wymieszac losowo wiersze w dokumencie textowy znacie jakis automat do tego alob opcje w programie?

Edytowane przez KLICEK

  • Odpowiedzi 6
  • Wyświetleń 1,5k
  • Created
  • Ostatniej odpowiedzi

Top Posters In This Topic

Napisano

#!/usr/bin/python
import os
import random
import sys

if len(sys.argv) > 1:
 fileName = sys.argv[1]
 curDir = os.getcwd()
 fileO  = open(curDir + "/" +fileName, "r")
 linesList = fileO.readlines()
 fileO.close()
 outList = []

 for i in range(len(linesList)):
   outList.append(linesList.pop(random.randint(0, (len(linesList)-1) )))

 print outList
 fileO = open(curDir + "/output.txt", "w+")

 for line in outList:
   fileO.write(line)

 fileO.close()

 

ten kod niestety nie działa z plikami które zawierają polskie znaki. Trzeba by go zmusić do korzystania z modułu codecs ale trochu mnie się nie chce w tej chwili :)

Napisano
  • Autor

dieki wielkie niedlugo to przetestuje, a gdzie woglule mam odpalic tego skrypta?

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.