Python Basics
python Language Web development Framework web2py
Create a project:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/B3/wKiom1WDAWrRgyGIAAErQBwh84g410.jpg "title=" Qq20150619012934.jpg "alt=" Wkiom1wdawrrgygiaaerqbwh84g410.jpg "/>
Project Name set to MyWeb
After the creation is complete, it runs:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/B4/wKiom1WDEFuzipI0AAILzoIZWxU024.jpg "title=" Qq20150619023815.jpg "alt=" Wkiom1wdefuzipi0aailzoizwxu024.jpg "/>
Working with static files
Placed in the static directory, accessed directly through the file path in the Address bar:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/B0/wKioL1WDFBOxBa3qAAC1-QIbgl4068.jpg "title=" Qq20150619024737.jpg "alt=" Wkiol1wdfboxba3qaac1-qibgl4068.jpg "/>
Controller:
Add a file under Controllers.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/B0/wKioL1WDFi7BGhbMAADSNxQv4nE623.jpg "title=" Qq20150619025632.jpg "alt=" Wkiol1wdfi7bghbmaadsnxqv4ne623.jpg "/>
Visit: Http://127.0.0.1:8000/main/hello/hello
Geek College: http://www.jikexueyuan.com/course/201.html
Python Learning Notes (1)--python Language Web development Framework Web2py