pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/Chiptune93/python.webcrawling.pratice

ymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-3aa75d4cd2374bb7.css" /> GitHub - Chiptune93/python.webcrawling.pratice: python · GitHub
Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

note

  • idle >> python shell running

변수와 함수

  • 변수 사용
x = 'Hello'
print(x)
  • 입력받는 함수.
name = input('what is your name?')
what is your name? dk
print(name)
dk
  • 파일 작성 후 실행
idle >> new File >> source code edit >> save >> 'F5' to running
  • 반복문
links = ['1','2','3']

for link in links:
  ...
  • 문자열 자르기
string[start:end:step] >> step 미지정 시, 1 고정
  • 위치 값 찾기(indexOf)
string.find('str') >> 있으면 양수 리턴, 없으면 -1 리턴
  • 존재 여부
in, not in >> value = 'str' in(not in) string >> return true/false
ex) 
value = 'str' in 'string'
if value:
  ...
else:
  ...
  • 현재 날짜/시간
import datetime

now = datetime.datetime.now()
print(now)          # 2015-04-19 12:11:32.669083

nowDate = now.strftime('%Y-%m-%d')
print(nowDate)      # 2015-04-19

nowTime = now.strftime('%H:%M:%S')
print(nowTime)      # 12:11:32

nowDatetime = now.strftime('%Y-%m-%d %H:%M:%S')
print(nowDatetime)  # 2015-04-19 12:11:32

About

python

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy