new code
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
a = []
|
||||
a.append("123")
|
||||
a.append("456")
|
||||
print(a)
|
||||
aa = [1,2,3,4,5,6,7,8]
|
||||
bb = ""
|
||||
for i in range(len(aa) - 1):
|
||||
if i == 0:
|
||||
bb = str(aa[i])
|
||||
bb = bb + "|" + str(aa[i + 1])
|
||||
|
||||
print(bb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user