Python 提供了两个基本的 socket 模块:
Socket它提供了标准的BSD Socket API。SocketServer它提供了服务器重心,可以简化网络服务器的开发。
下面讲解下 Socket模块功能。
| git config --global http.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
When you got this error
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo: unable to resolve host bayanca05
[sudo] password for bayan-ca-05:
Selecting previously unselected package google-chrome-stable.
(Reading database ... 174654 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (43.0.2357.81-1) ...
| #!/usr/bin/env python | |
| import math | |
| from math import sin, cos, pi | |
| import rospy | |
| import tf | |
| from nav_msgs.msg import Odometry | |
| from geometry_msgs.msg import Point, Pose, Quaternion, Twist, Vector3 |
| import requests | |
| import json | |
| import random | |
| Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
| headers = { | |
| 'Cookie': "Replace Me With REAL COOKIE" , | |
| 'Pragma': 'no-cache', |
| version: '3' | |
| services: | |
| bitwarden: | |
| image: vaultwarden/server:latest | |
| container_name: vaultwarden | |
| restart: always | |
| environment: | |
| - WEBSOCKET_ENABLED=true | |
| - SIGNUPS_ALLOWED=false |