- 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
- 虚词:副词、介词、连词、助词、拟声词、叹词。
n 名词
nr 人名
""" | |
explore2.py: Script to explore the OSCON schedule feed | |
>>> from osconfeed import load | |
>>> raw_feed = load() | |
>>> feed = FrozenJSON(raw_feed) | |
>>> len(feed.Schedule.speakers) | |
357 | |
>>> sorted(feed.Schedule.keys()) | |
['conferences', 'events', 'speakers', 'venues'] |
import PyQt5 | |
from PyQt5 import QtCore | |
from PyQt5 import QtBluetooth | |
class DeviceFinder(QtCore.QObject): | |
def __init__(self): | |
super().__init__() | |
self.m_devices = [] |
备份镜像 | |
查看sd卡的路径 | |
df -h | |
备份镜像到磁盘 | |
sudo dd if=/dev/树莓派设备地址 | gzip>/home/你的用户名/文件名.gz | |
例子 | |
sudo dd if=/dev/disk2 | gzip > /Users/hidaris/rpi_opencv3_41_hass.gz | |
''' | |
测试环境: | |
python3.6 | |
pyzmq==17.0.0 | |
''' | |
import time | |
import zmq | |
context = zmq.Context() | |
socket = context.socket(zmq.PUB) | |
socket.bind('tcp://127.0.0.1:2000') |
import pygame | |
from pygame.locals import * | |
import cv2 | |
import numpy as np | |
import sys | |
camera = cv2.VideoCapture(0) | |
pygame.init() | |
pygame.display.set_caption("OpenCV camera stream on Pygame") | |
screen = pygame.display.set_mode([1280,720]) |
import socket | |
HOST = 'localhost' | |
PORT = 9876 | |
ADDR = (HOST,PORT) | |
BUFSIZE = 4096 | |
videofile = "videos/royalty-free_footage_wien_18_640x360.mp4" | |
bytes = open(videofile).read() |
First of all, it just seems like doing anything with Oracle is obnoxiously painful for no good reason. It's the nature of the beast I suppose. cx_oracle is a python module that allows you to connect to an Oracle Database and issue queries, inserts, updates..usual jazz.
Step 1:
sudo apt-get install build-essential unzip python-dev libaio-dev
Step 2. Click here to download the appropriate zip files required for this. You'll need:
[default] | |
access_key = asf | |
bucket_location = US | |
cloudfront_host = cloudfront.amazonaws.com | |
cloudfront_resource = /2010-07-15/distribution | |
default_mime_type = binary/octet-stream | |
delete_removed = False | |
dry_run = False | |
encoding = UTF-8 | |
encrypt = False |