UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    求助:如何在此系统上编译python文件?(How can I write my python program on this phone?)

    Scheduled Pinned Locked Moved Unsolved Off topic
    6 Posts 5 Posters 677 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • M Offline
        MrYuin
        last edited by

        我成功地创建了text.py的文件,但我不知道如何修改它,有大佬可以帮忙解惑吗?
        I created a file named with "text.py" by "touch text.py" ,but I don't know how can I write my code in it. Can someone help me?

        lduboeufL P LakotaubpL 3 Replies Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @MrYuin
          last edited by

          @mryuin Hi, well with only this few explanation, it is hard to help 😉
          Have you looked at the python template proposed by clickable ?

          1 Reply Last reply Reply Quote 0
          • P Offline
            potet @MrYuin
            last edited by potet

            @mryuin Hi,
            Your best bet for writing/editing code is the app Seabass2!
            https://open-store.io/app/seabass2.mikhael

            1 Reply Last reply Reply Quote 0
            • LakotaubpL Offline
              Lakotaubp @MrYuin
              last edited by

              @mryuin Please mention device and as much info as you can. It all helps others help you. Thanks

              1 Reply Last reply Reply Quote 0
              • kuailexsK Offline
                kuailexs
                last edited by Lakotaubp

                编辑还是编译
                编辑的话,随便找个文本编辑器就是了。
                编译的话,py是解释性语言,不需要编译的

                Translation : Edit or compile
                For editing, just find a text editor.
                If compiled, py is an interpreted language and does not need to be compiled

                UB 16.04 on Xiaomi 4
                UB 20.04 on Xiaomi 6

                LakotaubpL 1 Reply Last reply Reply Quote 0
                • LakotaubpL Offline
                  Lakotaubp @kuailexs
                  last edited by

                  @kuailexs I took the liberty and added a translation. If it is not correct please change it. Thanks

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post