为了账号安全,请及时绑定邮箱和手机立即绑定
L = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
S = set([1, 3, 5, 7, 9, 11])

for a in L:
if a in S:
S.remove(a)
else:
S.add(a)
print(S)
第一段代码后面那个num+=1不用的吧
print(东)
print“huangtim”
print“huangtim”
a=‘hello world’
'Learn Python in imooc.'
100
0b1101
print (‘Life is short, you need Python’)
a = 'python'
print('hello,', a or 'world')
b = ''
print('hello,', b or 'world') a = 'python'
print('hello,', a or 'world')
b = ''
print('hello,', b or 'world')
print (0.1+0.2)
print('Hello World')
print (‘蔡羽’)
直接这样一句话就可以了吧。
d = {'Alice': [50, 61, 66], 'Bob': [80, 61, 66], 'Candy': [88, 75, 90]}

print(len(d))
课程须知
如果您了解程序设计的基本概念,会简单使用命令行,了解中学数学函数的概念,那么对课程学习会有很大的帮助,让您学起来得心应手,快速进入Python世界。
老师告诉你能学到什么?
通过本课程的学习,您将学会搭建基本的Python开发环境,以函数为基础编写完整的Python代码,熟练掌握Python的基本数据类型以及list和dict的操作,灵活使用流程控制语句。

微信扫码,参与3人拼团

微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消