How OpenAI Dots goes

DOTS · CIVILIZATION JOURNAL

日夜之間,文明逐步成形。

以城市描繪研究、執行與驗證。日出日落,讓工作留下形狀。

角色設計示意 · 無需登入
臺北時間 · 日夜運行
--:--城市載入中
建築為固定示意;天光與街景運動不代表模型自行進化。
00:0024:00

日出、日落使用臺北參考座標估算,不是裝置定位。

圖書館象徵研究、資料整理、說明與修正。這是任務角色的設計,不表示實際指定了哪個模型。

能力角色示意,尚未接入實際作業資料

日夜動畫會自動運行;每日新增工作資料不會自動讀取。建築不隨空轉時間增加。實際模型名稱、路由、用量與能力評分均未提供。這份嵌入內容需要換貼新版,才會更新工作摘要。

6/21/2017

(Open Source) 使用Python 來製作 pptx

"Where are you going?" 在跑金面山時讓我想到Alice Wonderland,可惜的是並沒有出現那隻貓

“Cat: Where are you going?
Alice: Which way should I go?
Cat: That depends on where you are going.
Alice: I don’t know.
Cat: Then it doesn’t matter which way you go.”

― Lewis Carroll, Alice in Wonderland
儘管這年頭碰到沒有Office或其他辦公室套件(ex. Google suite)很少, 但是有一個問題是我們無法透過檔案總管或是X軟出品的套件來找到PPT內容的關鍵字, 也無法自動化產出(有出週報與月報的切身之痛.....浪費人生在剪貼簿)

python-pptx 套件很有趣的就是他可以做出這種無腦的簡報, 所以當資料量大的時候就變得很有效
Feature Support:
  • Round-trip any Open XML presentation (.pptx file) including all its elements
  • Add slides
  • Populate text placeholders, for example to create a bullet slide
  • Add image to slide at arbitrary position and size
  • Add textbox to a slide; manipulate text font size and bold
  • Add table to a slide
  • Add auto shapes (e.g. polygons, flowchart shapes, etc.) to a slide
  • Add and manipulate column, bar, line, and pie charts
  • Access and change core document properties such as title and subject
安裝的方式可以透過:  pip install python-pptx來安裝 這個套件, API Documentation可以參考這邊來編輯需要的範本. 希望可以善用python-pptx來做出搞出一個屬於自己的範本(這樣就可以無腦出報告?) 

延伸閱讀:
1. 變更資料夾所需要的套件 Python os module 
2. python-pptx(template) Hello World!
3. python-docx 
from pptx import Presentation

prs = Presentation()
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]

title.text = "Hello, World!"
subtitle.text = "python-pptx was here! by Tony"

prs.save('test.pptx')

沒有留言:

張貼留言

謝謝您的留言, 我會在收到通知後盡快回覆您的.
Thanks for your comment. l may reply once I got notification.