摘要: # -*- coding:utf-8 -*- #添加UTF-8编码 cars = 100 #变量cars有100辆 space_in_a_car = 4.0 #变量1辆车的空间可以容纳4个人 drives = 30# 变量司机有30名 passengers = 90 #乘客有90名 cars_not_driven = cars - drives #不开的车辆 cars_driven = ... 阅读全文
posted @ 2016-11-14 14:33 听风呤 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 #_*_ coding: utf-8 _*_ #表示的是在脚本中使用unicode utf-8 编码 2 print ("hello world!") 3 print ("hello again") 4 print ("this is fun") 5 print ("yay! printing") 6 print ("i'd much rather you 'not'") 7 print ... 阅读全文
posted @ 2016-11-14 13:25 听风呤 阅读(136) 评论(0) 推荐(0) 编辑