코딩도장

코딩도장

변경이력

돌아가기
3 207개 문자 추가 129개 문자 삭제

2019年02月15日 05:57

김규묭

```{.python}erl} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass mok = post// pagecapa box = 0elif div < 1post%pagecapa == 0: box = 1div else : box =elif post > pagecapa and pagecapa == 1: box = post elif post%pagecapa != 0 and post //> pagecapa box += 1: box=mok + 1 else: box = mok + 1 return int(box) def input_information(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_information() ```
```{.python}erl} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass mok = post// pagecapa box = 0elif div < 1post%pagecapa == 0: box = 1div else : box =elif post > pagecapa and pagecapa == 1: box = post elif post%pagecapa != 0 and post //> pagecapa box += 1: box=mok + 1 else: box = mok + 1 return int(box) def input_information(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_information() ```
```{.python}erl} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass mok = post// pagecapa box = 0elif div < 1post%pagecapa == 0: box = 1div else : box =elif post > pagecapa and pagecapa == 1: box = post elif post%pagecapa != 0 and post //> pagecapa box += 1: box=mok + 1 else: box = mok + 1 return int(box) def input_information(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_information() ```
2 2개 문자 추가 2개 문자 삭제

2019年02月15日 03:57

김규묭

```{.python} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass elif div < 1: box = 1 else : box = post // pagecapa box += 1 return box def input_imnformation(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_imnformation() ```
```{.python} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass elif div < 1: box = 1 else : box = post // pagecapa box += 1 return box def input_imnformation(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_imnformation() ```
```{.python} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass elif div < 1: box = 1 else : box = post // pagecapa box += 1 return box def input_imnformation(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_imnformation() ```
1 Original

2019年02月15日 03:56

김규묭

```{.python} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass elif div < 1: box = 1 else : box = post // pagecapa box += 1 return box def input_imformation(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_imformation() ```
```{.python} class Notice_board: def monitor(self, box): print("총 페이지 수는 %s개 입니다"% box) def init(self, post, pagecapa): div = post / pagecapa box = 0 if div == 0: pass elif div < 1: box = 1 else : box = post // pagecapa box += 1 return box def input_imformation(): post = int(input("게시물은 몇개?: ")) pagecapa = int(input("페이지수는 몇?: ")) gmk = Notice_board() box = gmk.init(post, pagecapa) gmk.monitor(box) if __name__ == "__main__": input_imformation() ```
코딩도장

코딩도장은 프로그래밍 문제풀이를 통해서 코딩 실력을 수련(Practice)하는 곳입니다.

코딩도장 © 2014 · 문의 [email protected]
피드백 · 개인정보취급방침 · RSS

AltStyle によって変換されたページ (->オリジナル) /