def greet(x,y=1):
if x == y:
print("Hello World!")
else:
print("Hello,Girl!")
if x == y:
print("Hello World!")
else:
print("Hello,Girl!")
2016-12-05
if score>59:
print 'passed'
else:
print 'failed'
居然报错,严重不理解啊
print 'passed'
else:
print 'failed'
居然报错,严重不理解啊
2016-12-05
用pop()删除元素,必须确定元素在list中的位置,如果这样写L.pop(2)之后Bart的位置就不是L.pop(3),所以就会存在数组越界吧就运行不了了
2016-12-05