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

Commit7b13f5b

Browse files
authored
Merge pull request#39 from abbassix/patch-1
using f-strings instead of % operator
2 parentse7c182d +166a388 commit7b13f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎01-data-model/data-model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
" self.y = y\n",
483483
"\n",
484484
" def __repr__(self):\n",
485-
" return 'Vector(%r, %r)' % (self.x,self.y)\n",
485+
" returnf'Vector({self.x!r}, {self.y!r})'\n",
486486
"\n",
487487
" def __abs__(self):\n",
488488
" return math.hypot(self.x, self.y)\n",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp