投稿

2月, 2021の投稿を表示しています

「Tiny_Python試用録(7)」

%671: 「 https://github.com/LonamiWebs/Animake 」(2) `▼ -------------------------------------------------------------------------------- (0) 【 [%661] 】 の続きなので,まず「(1)③」を見てください. (1)参考資料  ① 【 [%650] 】 /*「What is Python6(5) in this blog ?」*/@  https://www.blogger.com/blog/post/edit/6859150935899261916/6361031757939814839  ② 【 [%660] 】 /*「How to start Tiny Python」*/@ https://www.blogger.com/blog/post/edit/6859150935899261916/9087668611124546370  ③ 【 [%661](1)③ 】 @「 https://github.com/LonamiWebs/Animake 」 (2) 【 [%651](3) 】 の「 from PyQt5.QtGui import QColor 」から「PyQt5.QtGui」を調査.  ① https://pythonspot.com/pyqt5-colors/  ② https://stackoverflow.com/questions/56024338/python-pyqt5-how-to-get-rgb-color-values-of-a-frame  ③ https://gist.github.com/lschmierer/443b8e21ad93e2a2d7eb (3)(4) -------------------------------------------------------------------------------- `▲ 背景色を変更 %672: 「 https://pythonspot.com/pyqt5-colors/ 」の紹介 ▼ ---------------------------------------------------------------------------

「Tiny_Python試用録(6)」

%660: How to start Tiny Python %661: 「 https://github.com/LonamiWebs/Animake 」 `▼ -------------------------------------------------------------------------------- This is a small helper program that aims at providing an easy-to-use interface for animating small things, such as text, boxes, and other basic shapes. ---------------------------------------------------------------------- Based on @expectocode's captivox, but modified to only provide a thin wrapper for rendering animations and exporting the result to a video file. To create your own scenes, add your own .py files inside the scenes/ directory. They must have a function definition called callback that accepts a single AniState parameter, like so: def callback (ani):     pass  # Use the input 'AniState' at will ---------------------------------------------------------------------- Example Say you want to make a quick scene.  You would create a scenes/quick.py file and then add some code: ---------------------------

Tiny_Python試用録(5)

%650: Python6(5) %651: 「Python試用録(□)」に関する補足 ・「What is Python6(5) in this blog ?」 `▼ -------------------------------------------------------------------------------- (0)このブログで使用中の 略称 への補足.  ③「Tutorial_Python」⇒「Python3」/*〔「(1)③」の資料の参照〕*/  ⑥「 Black _Python」⇒「Python6」⊂「Tiny_Python」/*〔「 ` 」「 _ 」の挿入〕*/  ⑦「 Courier _Python」⇒「Python7」⊂「Tiny_Python」/*〔「 ` 」「 _ 」の着色〕*/  ⑧「 Octal _Python」⇒「Python8」⊂「CPython」/*〔数値の 8進数表示 〕*/  ⑨「 Kanji _Python」⇒「Python9」⊂「 Regional_Python 」/*〔各国語対応〕*/  ⑱「 https://drive.google.com/file/d/1x_Z_17ki3q-aXRJZuG8ckgTvhFfItCBP/view?usp=sharing 」 (1)参考資料  ①「 https://en.wikipedia.org/wiki/Python_(programming_language) 」  ②「 https://en.wikipedia.org/wiki/CPython 」  ③「 https://docs.python.org/ja/3/tutorial/ 」  ④「 http://www.tinypy.org/ 」  ⑥「 https://github.com/nitipit/shelfdb 」  ⑦「 https://www.blogger.com/blog/post/edit/6943714883075862421/7129779210625796420 」  ⑧「 https://www.blogger.com/blog/post/edit/6943714883075862421/7639055000703693355 」/* 【 [%820](5)③ 】 :〔プログラミング教育に重宝

「Python3(3)」

%330: 「Python3(3)」 %331: 「sphinx」 `▼ -------------------------------------------------------------------------------- (0)「Python7」の「`」や「_」をシアンに着色したい (1)参考資料  ①「 http://www.tohoho-web.com/python/sphinx.html 」    `in_「 http://www.tohoho-web.com/python/tools.html 」  ②「 https://qiita.com/kazetof/items/d410dae312d56b7324c0 」  ③「 https://postd.cc/restructuredtext-vs-markdown-for-technical-documentation/ 」 (2)「(1)①」からの引用.「Python 関連ツール/Sphinx★」 ★「 http://www.tohoho-web.com/python/tools.html 」 ・Sphinxをインストールする ・静的コンテンツをドキュメント化する ・複数HTML以外の形式にビルドする ・テーマを変更する ・ドキュメントを組み込む (3)「(1)①」からの引用:「Pythonの実行★」. ★「 http://www.tohoho-web.com/python/start.html#exec 」  ①Windowsへのインストール   #Python 3.7.4   C:\>パスを設定   Path = C:\ Program Files \ Python37 \ Scripts \; C:\ Program Files \ Python37 \ .. ..   C:\> python -V  ②(Linuxシステムで)ソースコードからインストールする   C:\>設定   Path = C:\ WINDOWS \ system32; C:\ WINDOWS; ...(略)...; C:\ Python27   C:\> python -V   Python 2.7.9   C:\>タイプhello.py   印刷「Helloworld!」   C:\

Tiny_Python試用録(4)

%640: Tiny_Python試用録(4) %641: 「Tiny_Python」のドキュメントの紹介 `▼ -------------------------------------------------------------------------------- (0)「Python7」が準拠する「Tiny_Python」も,   このブログでは「Python6」と略称する. /*「(1)②」*/ (1)参考資料  ①「 https://github.com/nitipit/shelfdb 」  ② 【 [%630] 】 @「 https://www.blogger.com/blog/post/edit/6859150935899261916/5668532837327489797 」 (2)「(1)①」からの引用  ・Shelf DBは、ドキュメントまたはJSONのようなデータを格納する   Python用の小さなドキュメントデータベースです。  ①それを得る  ②asyncioサーバーを起動します  ③ネットワークを介した同期/非同期クエリクライアント。  ④シェルフクエリのインポート  ⑤データを保存する  ⑥同様の構文を持つ柔軟なクエリAPI  ⑦これ以上構文を学ぶ必要はありません。   使ってみましょうちょうどクエリfilter、slice、sort、map、   「reduce Python」のとほぼ同じで組み込み関数を。  ⑧正規表現  ⑨小さな   シェルフデータベース ~ 12kBシェルフクエリ ~4kB   ランタイムコードは小さく、インストールが簡単です。 ------------------------------------------------------------ (3)「tinypy.zip」を解凍したフォルダ「tinypy★」内のファイルです ★「 https://drive.google.com/file/d/1x_Z_17ki3q-aXRJZuG8ckgTvhFfItCBP/view?usp=sharing 」 -------------------------------------------------------------------------------- `▲ %642: 【[%641](1)①】