Python:实现perfect square完全平方数算法 import math def perfect_square(num: int) -> bool: return math.sqrt(num) * math.sqrt