- upload ZIP first
- new python file
import zipfile as zf
files = zf.ZipFile("ZippedFolder.zip", 'r')
->change the zip name
files.extractall('directory to extract')
-> add new folder and '[foldername]'
files.close()
import zipfile as zf
files = zf.ZipFile("ZippedFolder.zip", 'r')
->change the zip name
files.extractall('directory to extract')
-> add new folder and '[foldername]'
files.close()
git 指令: | |
本機端初始化: | |
git config --global user.name "[username]" | |
git config --global user.email "[email]" | |
cd 到 本機要放此repo 的資料夾path | |
github上複製URL | |
git clone https://github.com/username/test.git |
#################################################################### | |
# 1. fill in self.pixiv_id = '' and self.password = '' to login | |
# 2. fill in search_keyword = '' to find what you want | |
# | |
# 輸入關鍵字 爬圖 | |
#################################################################### | |
import requests | |
import re | |
from bs4 import BeautifulSoup | |
import os |
import requests | |
import re | |
import os | |
import sys | |
import time | |
from bs4 import BeautifulSoup | |
load_path = r'C:\Users\owner\Wenku8' | |
headers = { |
/* | |
HW3-2 HHuffman | |
106502030 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define N 10000 | |
char s[N]; | |
int n; |
var a_idx = 0; | |
jQuery(document).ready(function($) { | |
$("body").click(function(e) { | |
var a = new Array("傲慢", "貪婪 ", "色慾", "嫉妒", "暴食", "憤怒", "怠惰"); | |
var $i = $("<span/>").text(a[a_idx]); | |
a_idx = (a_idx + 1) % a.length; | |
var x = e.pageX, | |
y = e.pageY; | |
$i.css({ | |
"z-index": 999999999999999999999999999999999999999999999999999999999999999999999, |
""" | |
file format | |
* abc | |
* abcd | |
* abcde | |
* pef | |
* zxc | |
* zxcv | |
""" | |
with open('song.txt', 'r', encoding='utf-8-sig') as f: |
from google_images_download import google_images_download | |
response = google_images_download.googleimagesdownload() | |
url = 'https://www.google.com.tw/search?q=crayon+illustration&hl=zh-TW&tbm=isch&tbs=rimg:CXGAdYHYQIovImAgIOC67N3khY71ydA4U4Z-tvzOVnhUynH8VJsno2NEhiL3RPSYEIMW2cV8Jdi7bg-epOoA8KS2RGi2dxrMhnkf6pDj1qseJAjyeqp6n3InQctHPfWsoQOGVLBMcDUKQZoqEgkgIOC67N3khREJWXFRcKR-YSoSCY71ydA4U4Z-EdcidLqKngNbKhIJtvzOVnhUynERDZv56iW5puIqEgn8VJsno2NEhhFsO_1TA8pqV0CoSCSL3RPSYEIMWERd2hA0Pps38KhIJ2cV8Jdi7bg8R6_10GgsZGLV4qEgmepOoA8KS2RBHEQKl0KumA8yoSCWi2dxrMhnkfERn-Lh_1wP2_1cKhIJ6pDj1qseJAgRoGxvUnBvLTEqEgnyeqp6n3InQRGtaA9t2ocSACoSCctHPfWsoQOGEfCm7bbEkQCuKhIJVLBMcDUKQZoRQbHclHJgl-0&tbo=u&sa=X&ved=2ahUKEwiH7fX03vDlAhW1LqYKHfr9DyIQrnZ6BAgBEBY&biw=1918&bih=928&dpr=1' | |
absolute_image_paths = response.download( | |
{ | |
"url": url, | |
"limit": 1000, |
find . -type f -print0 | xargs -0 dos2unix // dos2unix to entire directory |