- 博客(5)
- 收藏
- 关注
原创 learn python the hard way EX4
cars = 100space_in_a_car = 4.0drivers = 30passagers = 90cars_not_driven = cars - driverscars_drivern = drivers carpool_capacity = cars_drivern * space_in_a_caraverage_passengers_per_car
2017-08-02 13:18:47 301
原创 learn python the hard way EX3
powershell:cd apython ex3notepad++#count chickensprint "I will now count my chickens:"#hens' sumsprint "hens",25+30/6#roosters' sumsprint "roosters",100-25*3%4#count eggsprin
2017-08-02 12:43:43 221
原创 learn Python the hard way EX1
notepad++输入如下,另存到a下print "hello world!"print "hello again"print "I like typing this."print "This is fun."print 'Yay! Printing.'#print "I'd much rather you 'not'."print 'I "said" do not t
2017-08-02 12:23:21 165
原创 learn Python the hard way EX0
考虑到大多数第一次学习编程的人都和我一样用的是windows操作系统,在这里只讨论windows下的环境搭建。下载notepad++windows powershell 系统自带 首先进入python,在powershell里输入python。如果没有出现书中正确的结果,按照书中的配置python路径:#path;后面是你的python安装路径[Environment]
2017-08-02 12:13:35 237
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人