How to declare many variables?

前端 未结 5 916
醉话见心
醉话见心 2020-12-11 13:22

Here is the letters:

letters=\'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\'

I made a list of it with this:

<         


        
5条回答
  •  醉话见心
    2020-12-11 13:35

    If you want to create 0-list with the length of string letters.

    letters='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
    chars = [0 for _ in range(len(letters))]
    

提交回复
热议问题