Neler yeni

Welcome to 1tik.net | Yeni Nesil Paylaşım Platformu

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Python ile Google Çeviri yapmak

Katılım
7 Şub 2023
Mesajlar
3
Tepkime puanı
0
Puanları
1
Merhabalar. ben bu gun sizlere Google Çeviri gibi bir sistem yaptim kullanmak istiyorsaniz buyurun.

ilk once kutuphaneyi kurun.
pip install translator

2ci) server.py adli python dosyasi olusturun ve icerisine kodlari yazin:
import tercume

a=input("Sizin dil: ")
b=input("Hansi dile: ")
c=input("Mesaj: ")
tercume.soz(a,b,c)

3ci) tercume.py adli python dosyasi olusturun ve icerisine kodlari yazin:
from translate import Translator

def soz (dil, dil2, mesaj):
translator = Translator(from_lang=dil,to_lang=dil2)
translation = translator.translate(mesaj)
print(translation)

bu kadar. CMD ekranina
yazarak calistirin.

Ekran goruntusu:
1675778538841.png
 
Üst Alt