简体   繁体   中英

How can I automate a python code for many cells?

I have data for a cell and from these data, I made a python code to extract some parameters. However, I want to repeat the same procedure for 100 cells (that have different initial data/ input). Is there a way to automate the process?

You can use looping for this.

primes = [2, 3, 5, 7]
for prime in primes:
    print(prime)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM