파이썬 45

z-index, stacking order, position, absolute, relative, CSS

1. 기본 stacking order html에서는 쓰여진 순서대로 차례차례 쌓이는(stack) 것이 기본이다. yellow blue red .yellow { height: 100px; width: 100px; background-color:yellow; } .blue { height: 100px; width: 100px; left:50px; background-color:lightblue; } .red { height: 100px; width: 100px; left:100px; background-color:red; } 2. 부모-자식 parent-child 그런데 HTML 요소 간에 계열이 있다면, 부모 위에 자식이 올라온다. 노랑(부모) - 파랑(자식) 간의 계열로 바꾸면 파랑이 노랑색보다 위에 있..

웹개발/Bootstrap 2022.12.13

[41-3 HTML] html 공부할 수 있는 사이트, mozilla, w3schools, devocs

html은 나만의 웹사이트를 만드는데 반드시 필요한 언어이다. html로 나만의 웹사이트를 제작하면서 필요한 코드가 생길 것이다. 그럴 때마다 아래의 세 사이트를 참고해보고, 당면한 문제를 해결해보기를 바란다! 1. 모질라 mozilla https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements –: The HTML Section Heading elements - HTML: HyperText Markup Language | MDN The to HTML elements represent six levels of section headings. is the highest section level and is the lowest. de..

HTML & CSS 2022.10.05

[39-2 파이썬] pprint() 함수, keyword argument: depth, width, indent, stream, sort_dict

pprint() from pprint import pprint pretty print의 약자로, 예쁘게 print해주는 함수이다. 예쁘다의 의미는, 많은 양의 데이터, 특히 크롤링을 한 json파일을 다룰 때 사용자가 보기 쉽도록 가독성을 높여 출력해준다는 것이다. ex) print() 를 사용할 때 {'prices': [{'city': 'Paris', 'iataCode': '', 'lowestPrice': 54, 'id': 2}, {'city': 'Berlin', 'iataCode': '', 'lowestPrice': 42, 'id': 3}, {'city': 'Tokyo', 'iataCode': '', 'lowestPrice': 485, 'id': 4}, {'city': 'Sydney', 'iataCo..

[37-6 파이썬 ] 7단계 requests.put(), requests.delete()

requests.put() 기존 데이터를 변경한다. 아래의 서식을 따른다. endpoint header body requsts.put()으로 데이터픽셀값을 수정한다. put_endpoint = f"https://pixe.la/v1/users/{USERNAME}/graphs/{GRAPH_ID}/{yesterday}" headers = { "X-USER-TOKEN": TOKEN, } put_parameters={ "quantity": "5000" } response = requests.put(url=put_endpoint, headers=headers, json=put_parameters) print(response.text) requests.delete() 기존 데이터를 삭제한다. 아래의 서식을 따른다. ..

[35-4 파이썬] 무료 API 사이트 모음, free API website

무료로 사용할 수 있는 API 사이트를 소개한다. API list이다. 900개가 넘는 API 사이트가 있고 이 중 90프로는 무료라고 한다. https://apilist.fun/collection/free-apis Free APIs We have over 900 APIs listed on the site, 90% of them are FREE. Here is just small subset of the best FREE APIs available in 2019, we added them in this collection because they are super easy to get started with for you to start building your next applicat apilist.fu..