mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-19 04:52:13 +02:00
Type correction for the output of math.sqrt() propagated across versions and languages
This commit is contained in:
@@ -627,7 +627,7 @@ i.age # => raises an AttributeError
|
||||
|
||||
# 你可以引入模組來做使用
|
||||
import math
|
||||
print math.sqrt(16) # => 4
|
||||
print math.sqrt(16) # => 4.0
|
||||
# math.sqrt()為取根號
|
||||
|
||||
# 你可以只從模組取出特定幾個函式
|
||||
|
Reference in New Issue
Block a user