Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Adding the ability to control length to __format__#54

Open
WeiGodHorse wants to merge1 commit intofluentpython:master
base:master
Choose a base branch
Loading
fromWeiGodHorse:master

Conversation

WeiGodHorse
Copy link

Hello, I am a beginner of Python and github. I have just learned chapter 10 of Fluent Python. I noticed that in the last discussion section in chapter 10 you offered a little exercise in adding control over the length of output to theformat method. I've just finished this exercise (although I feel like what I added looks jumbled) and added a few simple tests to the doctest (which may not be enough). I hope you can check whether the functions I added are correct. Meanwhile, I hope to take this opportunity to improve my python programming ability and practice the use of git and other functions. Thank you!

@WeiGodHorse
Copy link
Author

And I made some minor changes to theabs andbool functions.abs still uses 'math.hypot' as in Vector2d, whilebool uses 'any'.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@WeiGodHorse

[8]ページ先頭

©2009-2025 Movatter.jp