python-split()

value = "5+9"
v1,v2 = value.split('+')
v3 = int(v1)
# print(int(v1))
print(type(v3))
print(type(v2))

 

posted @ 2018-05-21 18:09  benchdog  阅读(199)  评论(0编辑  收藏  举报