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
class VarYok: | |
def __init__(self): | |
self.liste = {} | |
def ekle(self, adi, degeri): | |
if degeri not in (True,False): | |
raise ValueError | |
self.liste[adi] = degeri | |
def durum(self): |
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
titles = "LOCUS,DEFINITION,ACCESSION,VERSION,KEYWORDS,SOURCE,ORGANISM,REFERENCE,AUTHORS,TITLE,JOURNAL,PUBMED,COMMENT,PRIMARY,FEATURES,ORIGIN".split(",") | |
class ParseException(Exception): | |
pass | |
class Author: | |
def __init__(self, name): | |
self.name = name.strip() | |
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
1:AXBadadadadaadadadaaddbbbbbdada | |
2:AAAadadadacacacacacacdadadadada | |
3:BCAadadadadadadadadadadadadadad | |
4:AXAadadadadadadadadadadadadadaA |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>Dialog</class> | |
<widget class="QDialog" name="Dialog"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>400</width> | |
<height>300</height> |
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 random | |
class Kelime: | |
def __init__(self, kelime): | |
for noktalama in (";",",", ".","?","!"): | |
kelime = kelime.replace(noktalama , "") | |
self.kelime = kelime | |
self.karisik = self.karistir() | |
def karistir(self): |
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 sys | |
class Kelime: | |
def __init__(self, kelime): | |
self.kelime = kelime | |
self.bulunan = [] | |
def kontrol(self): |
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
from threading import Thread | |
import time | |
from random import randint | |
# Uc fonksiyon, uzun calisma icin sleep kullandik. | |
# her biri ayri bir thread olarak calisip, en uzun sure calisan bitince sonuclari yazacaktir. | |
def func1(a,b, result, idx): | |
sleepsec = randint(5,10) | |
print("func1, sleeping ", sleepsec) |
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
all: | |
g++ -c evler.cpp -std=c++11 | |
g++ evler.o evmain.cpp -o evmain -std=c++11 |
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
""" | |
skala dict, | |
{ | |
0 : 0, tecrube suresi : karsilik gelen maas artisi | |
5 : 3000 | |
7 : 4000 | |
10: 6000 | |
} | |