回答編集履歴

2

 

2022/07/29 22:30

投稿

退会済みユーザー
test CHANGED
@@ -1,4 +1,4 @@
1
1
  Rename the file "random.py" to something like "myrandom.py".
2
2
 
3
- The reason for the error is that you are running the same file name as the built-in module.
3
+ The reason for the error is that you are importing the same file name as the built-in module.
4
4
 

1

 

2022/07/29 08:50

投稿

退会済みユーザー
test CHANGED
@@ -1,4 +1,4 @@
1
- Rename the file "random.py" to something like "myrandome.py".
1
+ Rename the file "random.py" to something like "myrandom.py".
2
2
 
3
3
  The reason for the error is that you are running the same file name as the built-in module.
4
4