首页 > 其他 > 详细

闲得无聊写的

时间:2019-11-03 10:17:20      阅读:71      评论:0      收藏:0      [点我收藏+]
#!/user/bin/env python
# -*- coding:utf-8 -*-
v = 1
print(v)
count = 0
for i in range(1, 9):
for item in range(1, 9):
if i != item:
count += 1
print(count + 1)
li = [‘0‘, ‘1‘, ‘9‘, ‘‘, ‘0‘, ‘2‘, ‘3‘]
v = 2 in li
print(v)
s = li[2]
print(s)
li = [‘1‘, ‘3‘]
t = li.pop(1)
print(t)
info = {
‘k1‘: 17,
"k2": 0,
"k3": 2,
‘k4‘: [
9,
3,
7,
{
‘kk1‘: 0,
‘kk2‘: 5,
"kk3": 8,
"kk4": 7,
}
],
"k5": (),
}
v = info[‘k3‘]
s = info[‘k4‘][2]
t = info[‘k4‘][3][‘kk1‘]
s = {2, 7}
print(s)
python = [‘071‘, ‘088‘‘011‘]
linux = [‘071‘, ‘811‘]
python_add_linux = []
for i in python:
if i in linux:
python_add_linux.append(i)
print(python_add_linux)

闲得无聊写的

原文:https://www.cnblogs.com/pythonzhao/p/11784974.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!