Giter Club home page Giter Club logo

Comments (12)

Truth1987 avatar Truth1987 commented on May 26, 2024

我們可以合作:D

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

已經開了分支,Dev_0.8

from pyptt.

theoneisneo avatar theoneisneo commented on May 26, 2024

我們可以合作:D

OK. 我最近在忙, 有空就先改一些東西.

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

No problem

from pyptt.

theoneisneo avatar theoneisneo commented on May 26, 2024

雖然還是有點忙但應該可以開始投入了.
先討論一下支援多種語系的實作方法.
我想到的是增加一個print_ptt_msg()的function or class
依照設定的值(語系)去讀對應的字串後印出.
關於這樣做, 你有什麼看法嗎?

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

沒問題。
可參考
https://github.com/danhper/python-i18n

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

嗨,今天有寫了一個架構,在 1.0 裡面了

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

我寫好囉!!!最近會推上 pypi

from pyptt.

theoneisneo avatar theoneisneo commented on May 26, 2024

阿靠我都忘記我有答應要協作QQ. 太忙了. Sorry~

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

我還以為你看到我的程式碼太醜就崩潰了,哈哈哈哈哈哈

from pyptt.

theoneisneo avatar theoneisneo commented on May 26, 2024

XDDDDD. 沒有這種事. 如果覺得寫得不漂亮但有用的東西更應該一起討論弄好一點.
話說我之前喵到有個:

def __WaterBallProceeor(self):

    if self.__WaterBallHandler == None:
        return

    while len(self.__WaterBallList) != 0:
        CurrentWaterBall = self.__WaterBallList.pop(0)

好像作法改成別的了.
不過還是提一下.

  1. 原則上不會用長度是否非0來判斷一個list是否還有用, 寫下面這樣
    while self.__WaterBallList:
    應該就可以.

  2. 原則上list不使用pop(0).
    因為pop()的時間複雜度是O(1), 而pop(0)的時間複雜度是O(n). n是list的長度.
    pop(0)的時候會把後面的元素都搬到前面來.
    如果需要pop(0), 會用deque取代list. 由於底層資料結構設計的不同. 時間複雜度也是O(1).

from pyptt.

Truth1987 avatar Truth1987 commented on May 26, 2024

又學到了,謝謝耶,我再多看看這之類的用法

from pyptt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.