Profilo di ใŽ

Nome ใŽ
Indirizzo email ask :)
AvatarAvatar utenti
Messaggi238
Firma forum
THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
<ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you
think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Job Offer: Computer Scientist / Software Developer for multi-messenger astronomy
    Forum >> Annunci
    BTW, qualsiasi suggerimento su dove altro postare questa Job Offer per raggiungere efficacemente la comunita Python italiana e' piu che benvenuto.
    Ciao Franco,
    ti consiglierei la mailing list
    https://lists.python.it/mailman/listinfo/python/
    ed uno o piรน dei social linkati su
    http://www.python.it/comunita/social/

    Grazie,
    ใŽ

    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Job Offer: Computer Scientist / Software Developer for multi-messenger astronomy
    Forum >> Annunci
    Uhhh, che cosa interessante, grazie Franco!
    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Notazione Scientifica
    Forum >> Programmazione Python >> Calcolo scientifico
    Il problema รจ questo..... Dato un numero 342638197292754979757 il quale รจ divisibile per 37 e che da come risultato 9260491818723107561 su una calcolatrice normale.

    In python 3 invece si verifica la seguente condizione... Se io divido il numero in questo modo a=int(n/37) e lo rimoltiplico per 37, il risultato รจ questo 342638197292754952192.
    L'operatore `/` converte il tuo intero in un float, ed effettua una divisione approssimata secondo le regole dello standard IEEE 754; da cui la perdita di precisione che rilevi.

    la funzione (Int) naturalmente serve per verificare che faccia la divisione e la moltiplicazione giusta in quanto (int) arrotonda all'intero, ma essendo gia il risultato un intero

    non dovrebbe arrotondare niente e rimoltliplicandolo per lo stesso moltiplicatore riportarlo al valore originale.

    In questo caso dovresti utilizzare l'operatore di divisione intera `//`

    >>> 342638197292754979757 // 37                                                 
    9_260_491_818_723_107_561
    >>> _ * 37                                                                      
    342_638_197_292_754_979_757
    che restituisce il risultato che ti aspetti.


    HTH,

    ใŽ


    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Calendario nella Gui
    Forum >> Programmazione Python >> GUI
    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: cifrario di cesare
    Forum >> Principianti
    > ma come si fa poi per decriptare?





    basta che la richiami 13 volte :P





    >>> x = 'Testo Originale'                                                       
    >>> for i in range(13): 
    ...     x = crypto(x) 
    ...     print(f'{i:2}: {x}') 
    ...                                                                             
     0: Tkyzu Oxomotgrk
     1: Tqefa Odusuzmxq
     2: Twklg Ojayafsdw
     3: Tcqrm Opgeglyjc
     4: Tiwxs Ovmkmrepi
     5: Tocdy Obsqsxkvo
     6: Tuije Ohywydqbu
     7: Taopk Onecejwha
     8: Tguvq Otkikpcng
     9: Tmabw Ozqoqvitm
    10: Tsghc Ofwuwbozs
    11: Tymni Olcachufy
    12: Testo Originale
    




    ๐Ÿ‘‹

    ใŽ


    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: File su cartella condivisa in rete
    Forum >> Programmazione Python >> Web e Reti
    Non รจ una buona idea, in generale.




    Situations Where A Client/Server RDBMS May Work Better

    Client/Server Applications



    If there are many client programs sending SQL to the same
    database over a network, then use a client/server database
    engine instead of SQLite. SQLite will work over a network filesystem,
    but because of the latency associated with most network filesystems,
    performance will not be great. Also, file locking logic is buggy in
    many network filesystem implementations (on both Unix and Windows).
    If file locking does not work correctly,
    two or more clients might try to modify the
    same part of the same database at the same time, resulting in
    corruption. Because this problem results from bugs in
    the underlying filesystem implementation, there is nothing SQLite
    can do to prevent it.


    A good rule of thumb is to avoid using SQLite
    in situations where the same database will be accessed directly
    (without an intervening application server) and simultaneously
    from many computers over a network.




    -- https://www.sqlite.org/whentouse.html


    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Problemi con l'inserimento di immagini (tkinter)
    Forum >> Programmazione Python >> GUI
    prova con

    a = Button(roo, image=r"C:\Users\luke\Desktop\c.gif").pack()





    Ciao,

    ใŽ

    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Correzione della grammatica di un testo
    Forum >> Principianti
    prova con

    cm@hemp /tmp
    $ cat luke.py 
    f = open("es1.txt", "r")
    contenuto = f.read()
    f.close()
    
    dacorreggere = contenuto.replace("ciao", "Ciao")
    
    fi = open("es1.txt", "w")
    fi.write(dacorreggere)
    fi.close()
    cm@hemp /tmp
    $ cat es1.txt 
    ciao mondo
    cm@hemp /tmp
    $ py luke.py 
    cm@hemp /tmp
    $ cat es1.txt 
    Ciao mondo
    
    ใŽ

    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Problema affidabilitร  Python?
    Forum >> Programmazione Python >> Calcolo scientifico
    ciao,

    che OS stai usando? A me il tuo codice restituisce:

    cm@hemp /tmp
    $ cat ottobit.py 
    import time
    
    start = time.time()
    
    a = range(100000)
    b = []
    for i in a:
        b.append(i * 2)
    
    # a = range(100000)
    # b = [i*2 for i in a]
    
    end = time.time()
    print("%.10f" % (end - start))
    cm@hemp /tmp
    $ py ottobit.py 
    0.0109043121
    cm@hemp /tmp
    $ py ottobit.py 
    0.0114600658
    cm@hemp /tmp
    $ py --version
    Python 3.7.0
    


    ใŽ

    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ
  • Re: Convertire dizionario con tupla in csv
    Forum >> Programmazione Python >> Files e Directory
    perdona la curiositร , ma, come ti aspetteresti fosse il csv risultante?
    THE ๐Ÿบ-WARE LICENSE (Revision ใŠท):
    <ใŽ๐ŸŒ๐Ÿ.๐Ÿ‡ฎ๐Ÿ‡น> wrote this post. As long as you retain this notice you
    can do whatever you want with this stuff. If we meet some day, and you
    think this stuff is worth it, you can buy me a ๐Ÿบ in return. -- ใŽ