Coder Social home page Coder Social logo

sayisalloto's Introduction

Python ile Sayısal Loto Programı

Detaylar

Kullanıcı ismi aldıktan sonra kaç kolon oynamak istediği ile ilgili veriyi "C:" dizini içerisinde "sayisal" >isimli klasöre "C:\kullaniciadi" adlı dizinine kaydediyor. Devamında ise programa Kullanıcı ismini verdikten sonra kaydedilen dosyadan gerekli dosyaları çekerek kaç >tahminde bulunmanız gerektiğini hesaplıyor. Tahminleri bulunduktan sonra 1 kolon içinde 3 veya daha fazla >doğru tahmininiz varsa bunu size belirtiyor.

Kullanımı

Main.py çalıştırıldıktan sonra Kullanıcı adı ve Kaç Kolon sayı üretilmesi gerektiği bilgisi girilir. Run.py >kodunda ise önceki kodda girdiğiniz kullanıcı adınızı sonrasında tahminlerinizi giriyorsunuz.

Olası Hatalar

Traceback (most recent call last):
  File "C:/Users/Username/PycharmProjects/$projectname/Code.py", line 21, in <module>
    olustur()
  File "C:/Users/Username/PycharmProjects/$projectname/Code.py", line 9, in olustur
    os.mkdir(dirName)
FileExistsError: [WinError 183] Halen varolan bir dosya oluşturulamaz: 'C:\\sayisal/'

Çözümü:

"C:" dizinindeki "sayisal" isimli klasörü silmeniz durumunda ortada sorun kalmayacaktır.

Traceback (most recent call last):
  File "C:/Users/Username/PycharmProjects/$projectname/pis.py", line 6, in <module>
    with open('C:/sayisal/'+isim+'/veriler.txt') as csvfile:
FileNotFoundError: [Errno 2] No such file or directory: 'C:/sayisal/username/veriler.txt'

Çözümü:

"Code.py" çalıştırıldığında girdiğiniz ismin "Run.py" ile aynı olduğundan emin olun.

sayisalloto's People

Contributors

xelarmen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.