Python3. lotto 발생기
python은 뭔가를 해도 그냥 다 만들어 놓은 언어같습니다. 심심해서 만든 lotto 발생기 import random def lotto(sort=True): result = [] numbers = list(range(1, 46)) for _ in range(6): number = random.choice(numbers) result.append(number) numbers.remove(number) if sort: result.sort() return result print(lotto())
Coding
2021. 4. 2. 23:36
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- git
- golang
- enum
- ubuntu
- Spring
- nodejs
- Windows
- CentOS
- Codable
- ios
- windows10
- Gradle
- SWIFT
- Kotlin
- android
- centos8
- tomcat
- rxswift
- github
- MySQL
- Python
- war
- go
- docker
- php
- Linux
- Xcode
- intellij
- cocoapods
- Java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함