Method 1: [random.random() for _ in range(10)] to create a list of random floats. ... for _ in range(10)]. In my Python shell, the result is the following:.
確定! 回上一頁