タグ

pythonに関するkirakkingのブックマーク (12)

  • Pythonでリストを多用しがちな新人に贈りたい、array/tuple/set/queueの魅力と使い分けフローチャート - Qiita

    Pythonでリストを多用しがちな新人に贈りたい、array/tuple/set/queueの魅力と使い分けフローチャートPythonarray初心者tupleset はじめに みずほリサーチ&テクノロジーズの @fujine です。 Pythonのリストってとても便利ですよね。可変長で任意のオブジェクトを保存できるため、シーケンシャルなデータなら何でもリストで実装したくなる気持ち、分かります。 でもちょっと待ってください!リスト以外にも便利なコレクション型があること、ご存知でしょうか?コレクション型を適切に使い分けることで、 プログラムの意図を(ドキュメントに頼らなくても)読み手に的確に伝えられる パフォーマンスが向上する などの効果が期待できます。 そこで記事では、Pythonの組み込み型や標準ライブラリを対象に、リストと似たコレクション型をどのように使い分けるか?の案をフローチャー

    Pythonでリストを多用しがちな新人に贈りたい、array/tuple/set/queueの魅力と使い分けフローチャート - Qiita
    kirakking
    kirakking 2024/02/16
    何でもかんでもListではなく、適切なデータ構造を選ぼうという話。
  • Nimを知ってほしい2022


    NimNim Nim使 5NimPython#79 PythonistaNim稿 Nim? 2008 PythonGoOS 
    Nimを知ってほしい2022
  • pipとpipenvとpoetryの技術的・歴史的背景とその展望 - Stimulator


    -  - Python pippipenvpoetry Pythonpippipenvpoetry3poetry1Python Python 
    pipとpipenvとpoetryの技術的・歴史的背景とその展望 - Stimulator
  • TheAlgorithms/Python: All Algorithms implemented in Python

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    TheAlgorithms/Python: All Algorithms implemented in Python
  • 漸進的型付けの未来を考える - -


    CAMPHOR- Advent Calendar 2017 11    any 使 TypeScript  Python        
    漸進的型付けの未来を考える - -
    kirakking
    kirakking 2017/12/11
    理想としては書くときは動的、実行時は静的のサイズ。
  • 100万倍速いプログラムを書く - Qiita

    この記事はなんなの プログラミングを始めたばかりで高速化の大枠が全くわからず意味不明なことをしていた在学時、こんな資料があったら良かったのになあ、と思って書いたもの。 書いて、在学時研究室に押し付けた後紛失したと思われていたものが発掘されたもの。 要約 ライブラリがあるならそれを使う。 ライブラリが無ければ、ボトルネック部分を探してそこだけ高速な言語で書きなおすか、可能なら事前コンパイルする。 最初から全てを Low-Level な言語で書くと大変、でも結果のプログラムは速い。 以下の時間の計測ではインポートにかかる時間は除いています。 使用するもの Python(3系) Numba Scipy Line Profiler Fortran(gfortran) QUADPACK QUADPACK以外の導入方法の説明は色んな所にあるので各自でお願いします。上3つに関しては、個人的にはAnaco

    100万倍速いプログラムを書く - Qiita
  • O'Reilly Media - Technology and Business Training

    More than 5,000 companies count on our digital courses and more to guide their teams through the tools and technologies that drive business outcomes. We can help yours too. New AI policy for O’Reilly authors and talent O’Reilly president Laura Baldwin shares the company’s ethical approach to leveraging GenAI tools and ensuring O’Reilly experts are compensated for their work. See it now It’s time t

    O'Reilly Media - Technology and Business Training
  • はてな村民のPageRank - yamauk’s blog


    2015-06-01 PageRank id:yamauk   PageRank使*1PageRankWebPageRankWikipedia
  • 25.2. doctest — Test interactive Python examples — Python 2.7.18 documentation

    This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. 25.2. doctest — Test interactive Python examples¶ The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sessions to verify that they work exactly as shown. There are several commo

  • Pythonのコマンドライン引数処理の決定版 docopt (あとJuliaに移植したよ) - りんごがでている


    Python使docopt便 docoptargparseoptparse PythonargparseargparseAPI"program --help" API import argparse parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument
    Pythonのコマンドライン引数処理の決定版 docopt (あとJuliaに移植したよ) - りんごがでている
    kirakking
    kirakking 2014/06/14
    コロンブス!
  • PythonでLibreOfficeのマクロ | My note

    LibreOfficeのマクロはLibreOffice BASICが標準ですが、Pythonを使ってマクロを書くこともできます。 LibreOffice Calcの簡単なサンプル シートとセルを選択して値を読み書きするだけのスクリプトです。 def sample(): ここで定義する名前がLibreOffice Calc上でも表示されることになります。 doc = XSCRIPTCONTEXT.getDocument() シートの選択 名前から選択する場合 sheet = doc.getSheets().getByName('Sheet1') インデックスから選択する場合 sheet = doc.getSheets().getByIndex(0) アクティブシートを選択する場合 sheet = doc.CurrentController.getActiveSheet() 値の読み書き(数値

    PythonでLibreOfficeのマクロ | My note
  • Ubuntu 12.04のLibreOffice(openoffice)とpython: ドトヒコのカクカクワールド2D


    OpenOfficeLibreOffice Draw LibreOffice Basic使  使 python使python  Openoffice Basic  LibreofficeBasicIDE Python
    kirakking
    kirakking 2014/02/02
    Ubuntu 13.10だとlibreoffice-script-provider-pythonのインストールでいけた。
  • 1