第1个回答 2023-02-15
以下是一个示例:
```python
# create a list of initiator chain
initiator_chain = ['A', 'B', 'C', 'D']
# set the index to 0
index = 0
# loop until the end of the list
while index < len(initiator_chain):
# access the element at the current index
current_initiator = initiator_chain[index]
print('Accessing initiator', current_initiator)
# increment the index
index += 1
```
输出:
```
Accessing initiator A
Accessing initiator B
Accessing initiator C
Accessing initiator D
```