更新时间: 2020-10-29 18:42 +0000Pin. 十四五时期经济社会发展主要目标1. 何猷君奚梦瑶好甜 3232722. 我国每年有超190万患者死于卒中 2143063. 薇娅双十一直播 1880914. 郑爽妈妈发文 1763125. 从结婚开始恋爱 1591906. 幸福三重奏 1456957. [喀什最新核酸检测14人呈
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
from urllib.parse import quote, unquote | |
import os | |
def down_pic(pic_urls): | |
"""给出图片链接列表, 下载所有图片""" | |
for i, pic_url in enumerate(pic_urls): | |
try: | |
pic = requests.get(pic_url, timeout=15) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bootstrap Example</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script> | |
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script> | |
</head> |
知乎还没有倒闭……
Zhihu.com haven't closed down today... 😔
2020-10-29 19:06 +0000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// ExampleUIWebView | |
// | |
// Created by admin on 2020/11/22. | |
// | |
import UIKit | |
import WebKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Simple Alert | |
- Show alert with title and alert message and basic two actions | |
*/ | |
func showSimpleAlert() { | |
let alert = UIAlertController(title: "Sign out?", message: "You can always access your content by signing back in", preferredStyle: UIAlertControllerStyle.alert) | |
alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.default, handler: { _ in | |
//Cancel Action | |
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { | |
var ctrlnames: [String]? | |
var tableView: UITableView? | |
override func loadView() { | |
super.loadView() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DetailViewController.swift | |
// Swift-TableView-Example | |
// | |
// Created by Bilal ARSLAN on 12/10/14. | |
// Copyright (c) 2014 Bilal ARSLAN. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
class MoreViewController: UIViewController { | |
@IBOutlet var webView: UIWebView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
setupUI() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class RecipesTableViewController: UITableViewController { | |
var recipes = Recipe.createRecipes() | |
let identifier: String = "tableCell" | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
setupUI() |
OlderNewer