按照网上所说,配置apache:sudo vi /etc/apache2/httpd.conf 如下 <Location "~/yourprogect/"> SetHandler python-program PythonHandler djan
//print自带回车功能,print语句末尾加一逗号可去除默认回车。正确乘法表如下: for x in range(1,10): ... for y in range(1,x+1): ... z=y*x ... print y,"*",x,"=",z," ", ... print "\n"
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号