Pasten-Liste

Pasten-Liste
:

pkgdiff.sh (Shell) dyknon 2019-05-23 01:57
ディレクトリを再帰的に辿り、すべてのファイルにcmpを実行する。ただし、オブジェクトファイルに対してはobjdump -dで逆アセンブルしたものをcmpする。 自分でビルドしたパッケージと公式パッケージの差分の有無を確かめるために作成。 好きに使ってくだ...
2019-05-21-python实验 (Plain text) zyc1061422 2019-05-21 19:25
import requests import re import io from bs4 import BeautifulSoup url1 = "http://www.ytu.edu.cn/xxyw/index.jhtml" url2 = "http://www.ldu.edu.cn/index/zhyw.htm" fytu = open("ytu_news.csv","w") fldu = open("ldu_news.csv","w") def g...
tree (Plain text) okapi5087 2019-05-19 19:39
C:\Django\kosu>tree フォルダー パスの一覧: ボリューム Windows7_OS ボリューム シリアル番号は FCCB-B8FB です C:. ├─migrations │ └─__pycache__ ├─static ├─templates │ └─kosu └─__pycache__ C:\Django\kosu>
kosu ソース (Plain text) okapi5087 2019-05-19 19:37
C:\Django\kosu>for /r c:\django\kosu %i in (*.py) do type %i C:\Django\kosu>type c:\django\kosu\admin.py from django.contrib import admin # Register your models here. C:\Django\kosu>type c:\django\kosu\apps.py from django.ap...
check-page-load.py (Python) sugi 2019-05-08 14:46
#!/usr/bin/env python from seleniumwire import webdriver # Import from seleniumwire import sys driver = webdriver.Chrome() driver.get(sys.argv[1]) for request in driver.requests: if request.response and request.response....
Getting started with Kotlin Development in Android Studio (Plain text) kronstadt 2019-04-24 03:43
I am using Fedora Linux, but the procedure should not vary wildly. You will see that it is very easy to get started. 1. Download from https://developer.android.com/studio/index.html (1,1 GB) 2. Unpack (e. g. `sudo tar xzvf android-s...
PRIMES.BAS (Plain text) reiisi 2019-04-23 11:55
Building a sieve and counting primes in BASIC on the venerable Color Computer. Can go up to 4,100 primes in a 32K machine, see MAX on line 10. 4,100 requires three minutes or so.
Python文件作业 (Plain text) zyc1061422 2019-04-22 23:21
#20190409文件读入作业 f = open("white_wine.csv","r") out = open("output.txt","w") lines = f.readlines() quality=set() dic = {} fa = {} #001输出数据的前五行 for i in range(0,5): lines[i]=lines[i].strip() print(lines[i]) ...
20190416实验002 (Plain text) zyc1061422 2019-04-16 18:51
#bduegf #001输出有多个出版社 fi = open("book_list.csv","r") lines = fi.readlines() fl = lines[0] pub = set() for i in range(1,len(lines)): line = lines[i] line = line.strip() line = line.split(',') line = line[-...
20190416实验001 (Plain text) zyc1061422 2019-04-16 17:46
#20190416001 f = open("students.txt","r") infor = f.readlines() list1 = ['学号:',',姓名:',',年龄:',',专业:',',分数"'] num = len(infor) for i in range(num): if i : line = infor[i].strip() line = line.split('\t'...