python 一般处理
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:afei
# QQ:97259460
# date = 2019/8/29
s_code1=''
s_code2=',1,2,3'
s1=s_code2.strip(',').split(',')
s2=s_code1.strip(',').split(',')
print(s1)
print(s2)
s3 = s1+s2
s4=s3.remove('')
print(s3)
print(s4)
s5=['']
s6 =s5+s2
print('----------------------')
print(s6)
while '' in s6:
s6.remove('')
if(1 not in s6):
print('1')
print(s6)
posted on 2019-08-29 15:23 HOT SUMMER 阅读(141) 评论(0) 编辑 收藏 举报