Tweetovi
- Tweetovi, trenutna stranica.
- Tweetovi i odgovori
- Medijski sadržaj
Blokirali ste korisnika/cu @raymondh
Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @raymondh
-
The
#Python3.8 docs for statistics.NormalDist includes an examples/recipes section. 10-15 minutes to update your skills for cumulative distributions, quartiles and deciles, Monte Carlo simulations, Binomial distributions, and Naïve Bayesian Classifiers. https://docs.python.org/3/library/statistics.html#normaldist-examples-and-recipes …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
While it can be done, it is messy and full of interesting surprises. Better to incorporate the concrete class using composition, leaving inheritance for the abstract base class. Alternatively, inherit from the concrete class, skip the ABC, and override/extend methods as needed.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#Python question worth pondering: Can you inherit from a concrete collection and an abstract base class collection at the same time?https://stackoverflow.com/q/59923717/1001643 …Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
The issue arose accidentally today in class when "False" was passed to a "filename" parameter. The program didn't give an error and appeared to hang. It took a while to find the root cause. open() accepts a filename string, a path-like object, or an integer file descriptor.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#Python pop quiz. Do you know what this does: with open(False) as f: s = http://f.read ()Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
If there could have been a 5th choice, I would have added: * textwrap.dedent()
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Compilers can never add malicious code. NOT The python.exe executable guaranteed to be safe. NOT The BIOS is always safe. NOT Intel IME can be complete trusted. HOPEFULLY
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Assume that users have altered cookies. Assume that HTML requests may have been constructed maliciously. Assume that all data inputs may have been constructed maliciously.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
SQL is powerful, always sanitize the inputs YAML is powerful, don't load untrusted data. XML macros are powerful, don't parse untrusted data. ANSI.SYS is powerful, don't print untrusted text files.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#Python security: eval() is powerful, don't feed it untrusted inputs. "import" is powerful, don't import untrusted modules. "pickle" is powerful, don't unpickle untrusted data. Programmable computers are powerful, don't run untrusted programs.Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Run with Python 3.8 on macOS 10.15.1 using: from string import Template s = 'abc' t = 'def'
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
#Python oddity. The data type returned by star packing and unpacking is context dependent: >>> def f(x, *args): return args >>> type(f(2, 4, 6)) <class 'tuple'> >>> x, *args = (2, 4, 6) >>> type(args) <class 'list'> I wish the latter case returned a tuple.Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Output: 2 Octave 3/2 Perfect 5th 4/3 Perfect 4th 5/4 Major 3rd 6/5 Minor 3rd 1 Unison
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#Python music theory: semitone = 2 ** (1/12) steps = {'Octave': 12, 'Perfect 5th': 7, 'Perfect 4th': 5, 'Major 3rd': 4, 'Minor 3rd': 3, 'Unison': 0} for interval, n in steps.items(): ratio = Fraction(semitone**n).limit_denominator(10) print(ratio, interval)Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Over time, many
#Python statements have evolved a variant form as an expression: print ⟶ print() function def ⟶ lambda if ⟶ ternary operator for-loop with list.append() ⟶ list comprehension def and yield ⟶ generator expression = assignment ⟶ walrus operatorHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#Python implementation note: The JSON and ElementTree parsers both intern recurring keys and tags. This gives a nice memory savings when loading from large JSON and XML files.Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Here are the imports: from random import sample from statistics import fmean, stdev, quantiles
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.