Coder Social home page Coder Social logo

Homework Submission about tofel_words_reviewer HOT 4 CLOSED

abmfy avatar abmfy commented on June 16, 2024
Homework Submission

from tofel_words_reviewer.

Comments (4)

zhaochenyang20 avatar zhaochenyang20 commented on June 16, 2024

开源报告非常漂亮,值得表扬!

from tofel_words_reviewer.

zhaochenyang20 avatar zhaochenyang20 commented on June 16, 2024
parser.add_argument('-r', '--random',
        dest='random', action='store_true',
        help='whether to randomly select the words; if unset, '
             'each word list will contain different words in order'
    )
    parser.add_argument('-s', '--sorted',
        dest='sorted', action='store_true',
        help='whether to sort the word list'
    )

此处有两个 store_true 的变量,虽然这么写可以运行,但是一般而言,我们对 store_true 的变量使用 --r 而非 -r,作为和一般变量的区别(否则你指定了参数却没有传入数值,看着很奇怪)

from tofel_words_reviewer.

zhaochenyang20 avatar zhaochenyang20 commented on June 16, 2024

代码风格不错,整体注释详尽,可以再添加传入的接口注释,比如参考这份作业:https://git.tsinghua.edu.cn/lkm20/3.0-hw1/-/blob/master/wordTranslation.py

from tofel_words_reviewer.

zhaochenyang20 avatar zhaochenyang20 commented on June 16, 2024

作为初学者,提出表扬!

from tofel_words_reviewer.

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.