简体   繁体   中英

How do I remove the quotes in this list?

In this code the output is 'G','R','A','I','N' but i need it to be G,R,A,I,N, why? Also I'm on python 3.10 just in case that's important list=["G","R","A","I","N"] print(list)

list=["G","R","A","I","N"]
print(','.join(list))

I think you meant this.

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