What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-01 03:56:57
except do nothing python
try: do_something() except Exception: pass Add solution -
Python 2022-01-22 21:56:03
telegram bot python
import re from flask import Flask, request import telegram from telebot.credentials import bot_token, bot_user_name,URL global bot global TOKEN TOKEN = bot_token bot = telegram.Bot(token=TOKEN) app = Flask(__name__) @app.route('/{}'.format(TOKEN), met... Add solution -
Python 2021-11-09 12:24:23
Create Wi-Fi QR code generator using Python
import os try: import pyqrcode import cv2 except Exception: os.system("pip install pyqrcode") os.system("pip install opencv-python") ssid = input("\nEnter WiFi SSID: ") authtypes = ["WEP", "WPA... Add solution -
Python 2021-10-08 22:26:03
python - how to get an on wifi access event
import socket import time import subprocess def check():#this function checks if there is an wifi access try: host = socket.gethostbyname("www.google.com") s = socket.create_connection((host, 80), 2) return True ... Add solution -
Python 2021-10-08 15:11:12
telegram chat bot using flask
import re from flask import Flask, request import telegram from telebot.credentials import bot_token, bot_user_name,URL global bot global TOKEN TOKEN = bot_token bot = telegram.Bot(token=TOKEN) app = Flask(__name__) @app.route('/{}'.format(TOKEN), met... Add solution