私のコードは
if graph == square_grid and type(math.sqrt(nodes)) is not int: 
    print "Your netork can't have that number of nodes" 
もちろん、math.sqrt は常に float を返すため、これは機能しません。これどうやってするの?
私のコードは
if graph == square_grid and type(math.sqrt(nodes)) is not int: 
    print "Your netork can't have that number of nodes" 
もちろん、math.sqrt は常に float を返すため、これは機能しません。これどうやってするの?