来自网上的一些内容,做一下整理备用
安装时,修改grub 在grub编辑里quiet splash 后添加nomodeset,然后启动,若分辨率过低,可用ALT+F7来移动窗口
| #!/usr/bin/python3 | |
| # encoding:utf-8 | |
| import requests | |
| import json | |
| import sys | |
| import argparse | |
| from googletrans import Translator | |
| translator = Translator(service_urls=[ |
| #!/usr/bin/python3 | |
| #-*- coding: utf-8 -*- | |
| import requests | |
| import json | |
| headers = {'User-Agent' : 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'} | |
| def get_daily(): | |
| page = requests.get('http://news-at.zhihu.com/api/3/news/latest', headers=headers).text | |
| response = json.loads(page) |
| #conding:utf-8 | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| plt.rcParams['font.sans-serif'] = ['SimHei'] | |
| plt.rcParams['axes.unicode_minus'] = False | |
| plt.figure(num=1,figsize=(8,5)) | |
| plt.plot([0,1],[3,3],color='red',linewidth=1.0,linestyle='-') | |
| plt.plot([1,3],[3,1],color='red',linewidth=1.0,linestyle='-') |
| #define VCC 2 | |
| #define IN 4 | |
| const int HEADER = '@'; | |
| const char TAIL = '%'; | |
| int flag =-1; | |
| void setup() { |
| import requests | |
| from bs4 import BeautifulSoup | |
| import json | |
| import re | |
| from lxml import etree | |
| HEADERS = {'user-agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "\ | |
| "Chrome/65.0.3325.181 Safari/537.36"} |
Monero XMR mining via termux ;ubuntu
pkg install update && upgrade
apt install git
apt install wget
apt install proot