腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
sktj
专栏作者
举报
1542
文章
1891254
阅读量
34
订阅数
订阅专栏
申请加入专栏
全部文章
python
html
编程算法
http
png
image
网络安全
qt
网站
linux
javascript
flask
https
tcp/ip
bash
sql
c++
node.js
ios
css
数据库
class
容器
bash 指令
jquery
php
bootstrap
容器镜像服务
云数据库 SQL Server
java
import
缓存
nginx
ssh
unix
self
android
命令行工具
分布式
yum
xml
grep
windows
日志服务
DevOps 解决方案
jquery ui
文件存储
存储
shell
ftp
jenkins
zabbix
href
go
json
apache
socket编程
layui
file
ide
git
centos
sqlalchemy
腾讯云测试服务
django
init
sys
title
负载均衡
sqlite
打包
api
开源
dns
zookeeper
scrapy
button
data
path
text
云推荐引擎
kubernetes
运维
html5
nav
return
row
云数据库 Redis
负载均衡缓存
gui
自动化测试
flash
udp
数据分析
container
default
dropdown
size
time
toggle
swift
单片机
github
tomcat
访问管理
serverless
面向对象编程
数据结构
form
input
random
table
thread
actionscript
oracle
svn
devops
正则表达式
nat
utf8
Elasticsearch Service
cat
label
multiprocessing
panel
root
sort
width
配置
其他
.net
memcached
ubuntu
NAT 网关
vr 视频解决方案
爬虫
selenium
gcc
微信
安全
canvas
processing
accordion
block
element
function
key
line
prometheus
queue
range
release
select
txt
脚本
对象存储
regex
vue.js
access
web.py
全文检索
SSL 证书
自动化
jdk
cdn
kernel
ipv6
add
carousel
count
daemon
db
grafana
height
list
lock
mysql
navbar
pagination
pipe
port
process
sleep
tcp
timeout
var
win32com
监控
设计
perl
erlang
webview
listview
textview
makefile
apt-get
spring
mapreduce
cci 持续集成
企业
babel.js
游戏
wordpress
hive
numpy
openstack
rpc
kvm
网站建设
虚拟化
数据库管理
admin
alarm
alert
app
area
argv
bat
border
break
byte
client
com
cookie
cpu
dashboard
date
debug
dot
driver
error
excel
exit
filter
func
h2
haproxy
hash
host
hover
io
it
jobs
keepalived
ldap
location
map
min
object
output
ping
position
python3
reactor
script
semaphore
set
sh
shadow
slide
space
split
target
view
wait
webdriver
word
worker
wrapper
zip
备份
变量
布局
部署
对象
服务器
高可用
集群
架构
权限
手机
数据
算法
硬件
优化
装饰器
云服务器
内容分发网络 CDN
数据挖掘
objective-c
xcode
c 语言
c#
ruby
r 语言
react
ajax
typescript
硬件开发
matlab
jar
maven
深度学习
腾讯云可观测平台
TDSQL MySQL 版
消息队列 CMQ 版
域名注册
数据加密服务
文字识别
短信
图像处理
数据备份
渲染
url 安全
数据安全
xslt & xpath
grunt
spark
jvm
erp
npm
二叉树
单元测试
markdown
ddos
rabbitmq
iis
scikit-learn
ntp
小程序
物联网
hbase
iview ui
腾讯云开发者社区
云计算
kafka
机器学习平台
网站渗透测试
ascii
迁移
fiddler
实时监控
流计算 Oceanus
持续集成
alamofire
async
awk
backup
binary
bind
buffer
build
camera
case
categories
cell
center
cgi
chmod
chrome
click
clock
coding
combinations
comments
connect
console
contains
csv
datasource
datetime
decimal
deferred
dereference
diff
digits
dimensions
directory
distance
document
download
dump
editor
el
elasticsearch
event
exe
extract
fadeout
filenames
filepath
find
footer
format
fs
global
google
grid
handler
header
headless
hidden
hide
ini
inline
insert
installation
int
iptables
ipv4
join
kubectl
lambda
launch
lines
load
localhost
ls
mailto
match
math
memory
merge
message
mkmapview
mmap
mobile
mono
ode
offset
openldap
openpyxl
overflow
paste
patch
pdf
persistence
pickle
pip
point
policy
pool
popover
prefix
private
proc
progress
properties
ps
puppet
pywin32
readfile
redis
reference
refresh
replication
reset
responsive
restore
rewrite
rgb
route
samba
screen
scrum
security
send
sequence
server
setter
smtplib
spam
sqlite3
src
state
status
stderr
string
sum
super
swap
swing
tabs
tail
tar
templates
textarea
threadpool
timedelta
tkinter
tooltip
trace
uri
urllib
valueerror
version
vhosts
vi
viewer
vr
web
wiki
window
xlsx
编译
表格
插件
磁盘
代理
登录
动画
队列
二进制
反向代理
分页
工作
管理
函数
后台
基础
接口
进程
镜像
客户端
内存
排序
事件
索引
同步
文件系统
系统
效率
性能
虚拟主机
语法
域名
指针
重定向
状态机
自动化运维
字符串
搜索文章
搜索
搜索
关闭
python 访问需要用户名密码的URL脚本
编程算法
php
http
android
import urllib.request,urllib.error,urllib.parse
用户5760343
2022-05-14
828
0
python核心编程(数据库)
sqlite
android
云数据库 SQL Server
linux
sql
Cursor类的方法:rawcount,callproc,execute,fetchone
用户5760343
2022-05-14
678
0
Django2.0中文(部署)
android
编程算法
html
python
1、settings.py中DEBUG=False/TEMPLATE_DEBUG=False 2、vi xx/templates/404.html vi xx/templates/500.html 3、settings.py 中 ADMIN设置错误警告的用户,还包括EMAIL_HOST/EMAIL_HOST_USER,EMAIL_HOST_PASSWORD,EMAIL_PORT EMAIL_SUBJECT_PREFIX可以设置成前缀[Django] 4、连接中断邮件告警:MANAGERS 5、在manage.py中可以更改settings的路径 6、使用APACHE和mod_python部署: LoadModule python_module /usr/lib/apache2/modules/mod_python.so <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug Off </Location>
用户5760343
2022-05-14
221
0
Django2.0中文(通用视图)
html
listview
android
actionscript
python
1、通用视图 urls.py: from django.views.generic import TemplateView path(r'about/',TemplateView.as_view(template_name="about.html")), 2、通用视图 about.html xx/templates/about.html
用户5760343
2022-05-14
695
0
python查找页面元素脚本
html
http
android
php
import urllib.request def gethtml(url='http://www.baidu.com'):
用户5760343
2022-05-14
1.2K
0
python打印和下载页面 脚本
android
http
php
import urllib.request def gethtml(url='http://www.baidu.com')
用户5760343
2022-05-14
689
0
python 多线程socket
http
socket编程
android
import socketserver, time # get socket server, handler objects myHost = '' # server machine, '' means local host myPort = 50007 # listen on a non-reserved port number def now(): return time.ctime(time.time())
用户5760343
2022-05-13
281
0
python signal捕捉信号 脚本
android
def onSignal(signum, stackframe): # Python signal handler print('Got signal', signum, 'at', now()) # most handlers stay in effect if signum == signal.SIGCHLD: # but sigchld handler is not print('sigchld caught') #signal.signal(signal.SIGCHLD, onSignal)
用户5760343
2022-05-13
1.2K
0
python pyqt5 QListView
listview
android
qt
网站
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QListView, QMessageBox from PyQt5.QtCore import QStringListModel import sys
用户5760343
2022-01-10
751
0
python 函数回调
python
android
编程算法
def apply_async(func, args, , callback): # Compute the result result = func(args)
用户5760343
2019-10-21
834
0
jquery 表单验证
jquery
android
("form :input.required").each(function(){
用户5760343
2019-10-10
3.5K
0
flask 扩展开发(flask 113)
flask
python
sqlite
android
数据库
Flask,一个微框架,通常需要一些重复的步骤来让第三方库工作。因为在很多时候, 这些步骤可以被分离出,来支持多个项目,就有了 Flask Extension Registry 。
用户5760343
2019-08-20
474
0
flask 配置文件settings.py(flask 44)
sqlalchemy
sqlite
android
sql
flask
basedir=os.path.abspath(os.path.dirname(file))
用户5760343
2019-08-15
1K
0
flask app从py文件加载配置文件(flask 34)
python
sqlite
sql
sqlalchemy
android
WIN = sys.platform.startswith('win') if WIN: prefix = 'sqlite:///' else: prefix = 'sqlite:////'
用户5760343
2019-08-13
1.7K
1
flask 数据库配置(flask 25)
sqlite
sql
sqlalchemy
android
数据库
from flask_sqlalchemy import SQLAlchemy WIN = sys.platform.startswith('win') if WIN: prefix = 'sqlite:///' else: prefix = 'sqlite:////' app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', prefix + os.path.join(app.root_path, 'data.db'))
用户5760343
2019-08-13
658
0
IOS 使用Text Kit编排图文
textview
android
编程算法
1 let textView = UITextView(frame:CGRect(x:20, y: 40, width:280, height:500)) 2 textView.backgroundColor = UIColor.brown 3 self.view.addSubview(textView) 4 5 let textStorage = textView.textStorage 6 let path = Bundle.main.url(forResource:“word”, withExtension:“txt”) 7 do { 8 let string = try String(contentsOf:path!) 9 textStorage.replaceCharacters(in:NSRange(location: 0,length:0), with:string) 10 } 11 catch{ 12 print(“读取文件错误!”) 13 } 14 let image = UIImage(named:“Tea”) 15 let imageView = UIImageView(image:image) 16 let rect = CGRect(x:80, y:80, width:150, height:
用户5760343
2019-07-10
442
0
IOS 使用Text Kit做排版
textview
android
javascript
编程算法
1 let firstTextView = UITextView(frame:CGRect(x:20, y:40, width:135, height:200)) 2 firstTextView.backgroundColor = UIColor.brown 3 firstTextView.isScrollEnabled = false; 4 self.view.addSubview(firstTextView) 5 let textStorage = firstTextView.textStorage 6 let path = Bundle.main.url(forResource:“word”, withExtension:“txt”) 7 do { 8 let string = try String(contentsOf:path!) 9 textStorage.replaceCharacters(in:NSRange(location: 0,length:0), with:string) 10 } 11 catch{ 12 print(“读取文件错误!”) 13 } 14 let secondRect = CGRect(x:165, y:40, width:135, height:200) 15 let secondTextContainer = NSTextContainer() 16 let secondTextView = UITextView(frame:secondRect, textContainer:secondTextContainer) 17 secondTextView.backgroundColor = UIColor.brown 18 secondTextView.isScrollEnabled = false; 19 self.view.addSubview(secondTextView) 20 let thirdRect = CGRect(x:20, y:250, width:280, height:300) 21 let thirdTextContainer = NSTextContainer() 22 let thirdTextView = UITextView(frame:thirdRect, textContainer:thirdTextContainer) 23 thirdTextView.backgroundColor = UIColor.purple 24 thirdTextView.isScrollEnabled = false; 25 self.view.addSubview(thirdTextView) 26 let layoutManager = NSLayoutManager() 27 layoutManager.addTextContainer(firstTextView.textContainer) 28 layoutManager.addTextContainer(secondTextContainer) 29 layoutManager.addTextContainer(thirdTextContainer) 30 textStorage.addLayoutManager(layoutManager)
用户5760343
2019-07-10
402
0
IOS UIRefreshControl刷新控件
android
java
编程算法
import UIKit class ViewController:UIViewController,UITableViewDelegate,UITableViewDataSource{ @IBOutlet weak var tabvLayout:UITableView! var refreshControl = UIRefreshControl() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. self.automaticallyAdjustsScrollViewInsets = false //添加刷新 refreshControl.addTarget(self, action:#selector(refreshData), for: UIControlEvents.valueChanged) refreshControl.attributedTitle =NSAttributedString(string:”松开后自动刷新”) tabvLayout.addSubview(refreshControl) refreshData() } // 刷新数据 func refreshData() { self.tabvLayout.reloadData() self.refreshControl.endRefreshing() } // MARK:- UITableViewDataSource func tableView(_ tableView:UITableView,numberOfRowsInSection section:Int) -> Int { return 10; } func tableView(_ tableView:UITableView,cellForRowAt indexPath:IndexPath) -> UITableViewCell { let cell = UITableViewCell(style:UITableViewCellStyle.value1, reuseIdentifier:“newsCell”) let date = NSDate() let timeFormatter = DateFormatter() timeFormatter.dateFormat = “yyy-MM-dd ‘at’ HH:mm:ss.SSS” //(时间格式) let strNowTime = timeFormatter.string(from:date as Date) as String cell.textLabel?.text = strNowTime let rect = CGRect(x:0,y:cell.frame.height-1,width:self.view.frame.size.width,height:1) let label = UILabel(frame:rect) label.backgroundColor = UIColor.lightGray() cell .addSubview(label) return cell; } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
用户5760343
2019-07-08
687
0
IOS UITableView UITableViewCell控件
android
java
import UIKit class ViewController:UIViewController,UITableViewDataSource { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view,typically from a nib. let screenRect = UIScreen.main.bounds let tableRect = CGRect(x:0, y:20, width: screenRect.size.width, height:screenRect.size.height - 20) let tableView = UITableView(frame:tableRect) tableView.dataSource = self self.view.addSubview(tableView) } func tableView(_ tableView:UITableView,numberOfRowsInSection section:Int) -> Int{ return 20 } func tableView(_ tableView:UITableView,cellForRowAt indexPath:IndexPath) -> UITableViewCell { let identifier = “reusedCell” var cell =tableView.dequeueReusableCell(withIdentifier:identifier) if(cell == nil) { cell = UITableViewCell(style:UITableViewCellStyle.default, reuseIdentifier:identifier) } cell?.textLabel?.text = “命运负责洗牌,玩牌的是我们自己!” return cell! } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
用户5760343
2019-07-08
623
0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档