Bu Siteyi Ziyaret Etmek İçin Lütfen Tarayıcınızda JavaScript'i Etkinleştirin.


Konu Bilgileri
KATEGORİ ADI Python
KONU SAHİBİ
Mango
KONUDAKİ CEVAP SAYISI
0
GÖRÜNTÜLEME SAYISI
718
📊 KONU ETKİLEŞİM İNDEKSİ
Hesaplanıyor...
Veriler analiz ediliyor... %0
💬
Fikrinizi Paylaşın!
Bu konu hakkında ne düşünüyorsunuz? Yorumunuz topluluğumuz için değerli.

Yorum Yaz 
Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5

Python Sahte Alıntı Oluşturucu Yapımı

#1
Döküman 
Merhaba,
Belirlenen metni noktalardan parçalayıp içinden verilen sayı kadar rastgele cümle alıp ekrana yazıyor.

Kullanılan modüller: random


Kod:
import random # source: http://en.wikipedia.org/wiki/Python_%28programming_language%29 sentences = "Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale. Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library. Python interpreters are available for installation on many operating systems, allowing Python code execution on a wide variety of systems. Using third-party tools, such as Py2exe or Pyinstaller,[24] Python code can be packaged into stand-alone executable programs for some of the most popular operating systems, allowing for the distribution of Python-based software for use on those environments without requiring the installation of a Python interpreter. CPython, the reference implementation of Python, is free and open-source software and has a community-based development model, as do nearly all of its alternative implementations. CPython is managed by the non-profit Python Software Foundation.".split(".") print(("-" * 30) + "\nPseudo Quote Generator\n" + ("-" * 30)) n = int(raw_input("Number of sentences: ")) quote = [] for i in range(n):     quote.append(random.choice(sentences)) print("Your pseudo quote: {}.".format(".".join(quote)))
Bul
Cevapla
Yorum Yaz 


[-]
Hızlı Cevap / Sende Bi' Şeyler De!
Konu
Bu mesaj için cevabınızı buraya yazınız.

İnsan Doğrulama:
Lütfen aşağıda gördüğünüz onay kutusunu işaretleyin. Bu işlem, otomatik spam botlarını önlemek için kullanılır.

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
Python Koşullu İşlemler Kurgu 1 631 17-06-2025 Saat 14:27
Son Yorum: oznurdaglayan
Python Döngüler Kurgu 1 584 09-03-2025 Saat 14:23
Son Yorum:
Python Modüller Kurgu 1 635 11-02-2025 Saat 17:38
Son Yorum: uzman
Python Fonksiyonlar Kurgu 0 442 02-02-2025 Saat 21:47
Son Yorum: Kurgu
Python Alan Hesaplayıcı Mango 1 531 30-12-2024 Saat 16:49
Son Yorum: Kurgu


    Hızlı Menü:


    Konuyu Okuyanlar: 1 Ziyaretçi
    ForumTeams
    ForumTeams