[英]why i cant print sentence and variable value in 1 line use python?
Im try to calculating available subnet with python.我尝试用python计算可用子网。 just simple call but error.
只是简单的调用但错误。
print ("the IP is valid")
result = (2 ** (32 - int(mask)) - 2)
print ("net available: ".format(result))
print ("the IP is valid")
result = (2 ** (32 - int(mask)) - 2)
print ("net avaiable: {0}".format(result))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.