This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
for(int i = 1; i<=9; i++){ | |
if((i != 4)&&(i != 6)){ | |
cout << i << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
conn = sqlite3.connect('/Users/tgg/Desktop/vocab.db') | |
c = conn.cursor() | |
cursor = conn.execute("SELECT word_key,usage FROM LOOKUPS") | |
file = open("words.txt", "w") | |
for row in cursor: | |
word = row[0] | |
usage = row[1] | |
save = "%s, %s" % (word, usage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import linecache | |
words = [] | |
path = "Scieżka do pliku txt ze słówkami format słówka enter..." | |
count = len(open(path, 'rU').readlines()) | |
for i in range(1,count+1): | |
wiersz = linecache.getline(path, i).strip('\n').replace(' ', "-") | |
words.append(wiersz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import linecache | |
words = [] | |
path = "Wklej tu scieżkę do swojego pliku ze słówkami!" | |
count = len(open(path, 'rU').readlines()) | |
for i in range(1,count+1): | |
wiersz = linecache.getline(path, i) | |
wiersz1 = wiersz.strip() |