Python executes different lists every day. What method can be used to implement it?

list_a =

list_a = ["axiaxiaomagi", "baoyao", "cantilever",""sharp11

"

list_b = ["Achilles Permian, Bacheng, Jun, L", L", and sharp12

def main ():

-sharplist_a[i]
-sharplist_b[i]
-sharpi+=1
May.31,2022

date divided by two, odd listA even listB


the idea of the first floor is not rigorous ah, 365 days a year, 366days variable. It is recommended to use 7 days of the week, all odd numbers, and then flip


the question you ask is, for example, the first iLife0Med 1 executes list_a [0], the 2nd executes list_b [0], and then iSome1, or every day I + 1
you write scripts. If you need variables in it, you have to find a place to store them


.
import datetime
import os

list_a = ['a','b','c','d','e','f','g','h','i','j','k']
list_b = ['A','B','C','D','E','F','G','H','I','J','K','L']

sum_list = ['list_a', 'list_b']
time = datetime.datetime.now().strftime('%Y-%m-%d')

if not os.path.isfile('db.txt'):
    open('db.txt', mode='w')

with open('db.txt', mode='r+', encoding='utf-8') as f:
    file = f.readlines()
    if len(file) == 0:
        f.write('%s,%s\n' % (time, sum_list[0]))
        print(list_a)
        exit()

with open('db.txt', mode='a+', encoding='utf-8') as d:
    for i in file:
        if time == i.strip('\n').split(',')[0]:
            print(eval(i.strip('\n').split(',')[1]))
            exit()

    if sum_list.index(file[-1].strip('\n').split(',')[1])+1 >= len(sum_list):
        d.write('%s,%s\n' % (time, sum_list[0]))
        print(list_a)
    else:
        d.write('%s,%s\n' % (time, sum_list[sum_list.index(file[-1].strip('\n').split(',')[1])+1]))
        print(eval(sum_list[sum_list.index(file[-1].strip('\n').split(',')[1])+1]))

wrote a script for you to implement your needs. Would you like to see if it agrees with you? If you have any questions, please feel free to contact

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30e99-2bd4b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30e99-2bd4b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?