I did find some proposed solutions that involve reversing a generator function and ... bleh. They may be a little more efficient, but none pleased my eye as much as just reversing the range function, like this:
MyString = "Hello"
for index in range (len(MyString)-1, -1, -1):
print (index, MyString[index])
Liebe Menschen, die Dinge mit Python3 und Fotos machen: Gibt es einen Trick, die Größe eines Fotos zu ermitteln, das keine EXIF-Daten (oder andere Meta-Daten) hat?
Hintergrund: Ich möchte Fotos, die ich vorher gescannt habe, für einen bestimmten Zweck runterskalieren. Dazu verwende ich meinen downscaler (https://git.atari-frosch.de/?p=downscaler.git;a=tree). Der verläßt sich allerdings auf PIL, ergo auf vorhandene EXIF-Daten. Bei Scans hab ich die natürlich nicht.
downscaler meint, die Dateien seien schon zu klein, aber da muß ich nochmal nachschauen, warum das Fehlen der EXIF-Daten so interpretiert wird.
Clip "3in1" - Es ist wirklich abgefahren, was mit ein bisschen Code möglich ist. Hier ist er:
from turtle import *
bgcolor("color0")
colorexplosion = ("color1", "color2", "color3", "color4", "color5", "color6", "color7")
for i in range(x):
for gaudy in colorexplosion:
color(gaudy)
circle(xx)
pu()
fd(1 + i)
lt(xx)
pd()
...ein ganz klein bisschen mehr gab's noch ;), aber das " Herzstück" war immer s.o. Der Unterrichtsstil von @piko regt einfach zum Experimentieren an.
"I recently decided to sit down and finally port Shed Skin, an experimental restricted-Python-to-C++ compiler in the works since 2005 or so, to Python3. [...]
This does not mean that every Python3 feature is supported [...]. For example, unicode is still restricted to 1-byte characters, and there is no support (yet) for nice new features such as f-strings. [...] subsequent releases should add support for various new #Python3 features."
Are there any good books that help a total new person grasp how to program in Python? At least I know in general what the thing I want to program must do. It has to work in NVDA, and it has to read incoming text chats in one window and instantmessages that may appear in other windows. But I really need to just get the hang of the basics first, I am thinking.
What resources do you all recommend? Free online or available via Bookshare or BARD is best, thanks. #python3#programming#NVDA#Radegast2.39
I've been using #python instead of #bash for scripts lately, but I've been eyeing #lisp. Anyone know any lisp dialects that would be as good as #python3 for scripting? (Note that I'm sticking to python's standard library for portability)
#Python folks: Any tips for learning it, coming from #Rust ?
I'm kind of reliant on the strictness of Rust, especially when it comes to using the wrong types and everything. Some way to force me to follow a similar style would be appreciated.
I'm also very reliant on Cargo, it's so clean and integrates everything nicely. I'm not sure if there's an equivalent for Python that matches Cargo.
Hello mastadon world! I'm dyedbird. Husband, father and a brother from Maryland. Transitioned to #datascience about 1.5 year ago from another career and have been enjoying it so far. Want to learn more about #linux , #python3, #ai
Lifeless: A Multiplayer Game Made in 72 Hours (github.com)
A Multiplayer Game Made in 72 Hours. Contribute to 1dev-mha/Lifeless development by creating an account on GitHub.