This commit is contained in:
2024-04-23 10:10:27 +08:00
parent 35966f9914
commit a2091b7180
8 changed files with 103 additions and 25 deletions
+9 -4
View File
@@ -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)