0
1

More than 3 years have passed since last update.

micropythonとPython3の相違点

Posted at

概要

少しずつ更新。
Python3とmicropythonでプログラミングする上で
困った点・解決した点を下記に記載。

比較前提

  • Python 3.7
  • micropython 1.1.2

相違点

  • FTPライブラリが使えない
    • micropythonではFTPLibが標準では使えない。
  • zfillが使えない

    • 0パディングでよく使用するzfillがmicropythonでは使用できない

      • zfill関数を実装する
      def zfill(s, width):
          if len(s) < width:
              return ("0" * (width - len(s))) + s
          else:
              return s
      

参考ページ

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1