--- # OpenSCAD ```c translate([-24,0,0]) { union() { cube(15, center=true); sphere(10); } } intersection() { cube(15, center=true); sphere(10); } translate([24,0,0]) { difference() { cube(15, center=true); sphere(10); } } ``` ---
---
--- ```txt[1-3] 3.14 0.42 2.666 -0.01 0.004 -3.333 0.0 5.55 7.25 0.0 4.2 3.14 ... ``` --- ```python[1-8|7] import cython from cython.cimports.libc.stdio import sscanf def parse_line(line: bytes) -> cython.float: flt: cython.float sscanf(line, b'%e', &flt) return flt ``` ```pycon[] >>> parse_line(b'3.14') 3.140000104904175 ``` --- ```pycon[1-4] >>> from PySide2 import QtWidgets >>> app = QtWidgets.QApplication([]) >>> parse_line(b'3.14') 3.0 ``` --- ```pycon[1-4] >>> import matplotlib.pyplot as plt >>> plt.figure() >>> parse_line(b'3.14') 3.0 ``` --- ```pycon[1-2|3-5|6-7|8-9] >>> parse_line(b'3.14') 3.140000104904175 >>> import locale >>> locale.setlocale(locale.LC_ALL, '') 'cs_CZ.utf8' >>> parse_line(b'3.14') 3.0 >>> parse_line(b'3,14') 3.140000104904175 ``` ---
--- ## ![Fedora Loves Python](flp.svg) **fedora**loves**python**.org ---
---
--- # Miro HronĨok
floss.social @hroncok