http://support.sonymobile.com/tr/swr30/userguide/Resetting-the-headset/
yapın düzelcek ,istediginiz cihaza baglanacak 🙂
23 Salı Şub 2016
Posted KARIŞIK -MİXED :
inhttp://support.sonymobile.com/tr/swr30/userguide/Resetting-the-headset/
yapın düzelcek ,istediginiz cihaza baglanacak 🙂
08 Pazartesi Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
inclass Car(): def move(self): print("ı am moving") class Minibus(): def carry(self): print("carry people") class Bus(Car,Minibus): pass Merceds=Bus() Merceds.move() Merceds.carry()
output :
ı am moving carry people
class car has a move function
class Minibus has a carry function
class Bus has move and carry funtions
pass : bişey yazmamak istediginde yazarsın
08 Pazartesi Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
inclass Parent(): def print_last_name(self): print("ali") class Child(Parent): #inherit Parent def print_first_name(self): print("jordon") #override metod def print_last_name(self): print("ssdd") person = Child() person.print_first_name() person.print_last_name()
output :
ali jordon
08 Pazartesi Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
inwhile True: try: number=int(input("whats your fav number ? \n")) print(18/number) break except ValueError: print("make sure and enter a number ") except ZeroDivisionError: print(" dont pick zero")
output :
whats your fav number ? mht make sure and enter a number whats your fav number ? 0 dont pick zero whats your fav number ? 18 1.0
08 Pazartesi Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
infr=open("sample.txt","r") text =fr.read() print(text) fr.close()
output :
hello world have are you ?
sample is a text file which we want to read
“r” means we want to read data
we use text store all data
and use print to show
08 Pazartesi Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
infilewrite =open("sample.txt","w") filewrite.write("hello world \n ") filewrite.write("have are you \n ? ") filewrite.close()
if you run the program
output :
hello world have are you ?
name =sample which is a txt file
“w ” means we want to write
07 Pazar Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
in07 Pazar Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
innumber =5 — > str(number)
07 Pazar Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
inimport random x=random.randrange(1,5) print(x)
output :
can be
1
or
2
or
3
or
4
07 Pazar Şub 2016
Posted PYTHON PROGRAMMING LANGUAGE
inmain programa sag tık
new –> python file
adı da deneme2
def write(): print('hello') def dontsay(): print('have a nice day ')
buna modul deniliyor imiş pythonda
içini doldurduk metodlarla
sonra main page imize geldik
import ettik deneme2 modulünü
ve onun metodlarını kullanabildik
import deneme2 deneme2.write() deneme2.dontsay()
run program
output :
hello have a nice day