Table of Content
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
''' @Author: Jedi.XL @Email: xiangyangan@gmail.com @Created Time: 6:50:45 PM, Oct 22, 2019 @Github: https://github.com/jediL @Website:www.tundrazone.com ------------ 苔原带 ------------ ''' # Before 3.8 inputs = list() while True: current = input("say somethings: ") if current == "quit": break inputs.append(current) # IN 3.8, we can do this: inputs = list() while (current := input("say somethings: ")) != "quit": inputs.append(current) print(inputs) |