1.在路由处设置参数name Route::get('/index/{name}','Controller@index'); 2.接收name参数,使用view调用显示html页面 <?php namespace App\Http\Controllers; use http\Env\Request; ...
分类:
其他好文 时间:
2020-06-26 16:49:29
阅读次数:
73
#!/usr/bin/env python import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # Import MNIST data from tensorflow.examples.tutorial ...
分类:
其他好文 时间:
2020-06-26 16:25:26
阅读次数:
49
<?php namespace App\Http\Controllers; use http\Env\Request; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\Di ...
分类:
其他好文 时间:
2020-06-26 16:17:10
阅读次数:
84
1 <?php 2 3 4 namespace App\Http\Controllers; 5 6 7 use http\Env\Request; 8 9 class resourceController 10 { 11 public function index(){ // 12 dump("in ...
分类:
其他好文 时间:
2020-06-26 12:59:04
阅读次数:
50
微信公众号:码农充电站pro 个人主页:https://codeshellme.github.io 那些能用计算机迅速解决的问题,就别用手做了。 —— Tom Duff 目录 上一节 我们介绍了Python 面向对象的相关概念,我们已经知道类与对象是面向对象编程中非常重要的概念。 类就是一个模板,是 ...
分类:
编程语言 时间:
2020-06-26 11:00:16
阅读次数:
67
set 用来显示shell变量(包括环境变量、用户变量和函数名及其定义),同时可以设置shell选项来开启调试、变量扩展、路径扩展等开关env 用来显示和设置环境变量export 用来显示和设置导出到子shell的环境变量 每个shell有自己特有的变量(set)显示的变量,这个和用户变量是不同的, ...
分类:
系统相关 时间:
2020-06-26 10:35:27
阅读次数:
66
1 #!/usr/bin/env python 2 # Author: Andy Song 3 # date: 2020/6/25 4 # 占位符: %s: string, %d: digit, %f: float 5 6 name = input("Your Name Is: ") 7 gende ...
分类:
编程语言 时间:
2020-06-26 01:37:49
阅读次数:
93
#!/usr/bin/env sh for ((x=1;x<10;x++));do for ((y=1;x>=y;y++));do printf "${y}x${x}=$(expr ${x} \* ${y}) " done echo -e "\n" done ...
分类:
系统相关 时间:
2020-06-25 23:25:07
阅读次数:
86
搜索镜像标签: 1 #!/bin/env bash 2 3 repo_url=https://registry.hub.docker.com/v1/repositories 4 echo -ne "\033[7mInput image name(search for tags):\033[0m" 5 ...
分类:
其他好文 时间:
2020-06-25 17:18:45
阅读次数:
53
#!/usr/bin/env python3 # * coding: utf8 *"""目录:Python格式化字符串的4中方式一:%号(掌握)二:str.format(掌握)三:f-Strings(掌握)四:标准库模板五:总结四种方式的应用场景""""""Python格式化字符串的4种方 ...
分类:
其他好文 时间:
2020-06-25 11:48:42
阅读次数:
64