yii,CI,yaf框架+smarty模板使用方法

前端之家收集整理的这篇文章主要介绍了yii,CI,yaf框架+smarty模板使用方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文实例讲述了yii,CI,yaf框架+smarty模板使用方法分享给大家供大家参考,具体如下:

最近折腾了框架的性能测试,其中需要测试各个模板跟smarty配合的性能,所以折腾了一桶,现总结一下。之前已经写过kohana框架+smarty模板,这里不再重复了。

一、yii框架+smarty模板

yii是覆盖了viewRenderer组件。

1.1,下载yii框架并解压,下载smarty框架并解压,将smarty/libs文件夹拷到yii框架application/protected/vendors下面,并重命名smarty。

1.2,yii配置文件main.PHP

array( 'viewRenderer' => array( 'class'=>'batman.protected.extensions.SmartyViewRender',// 这里为Smarty支持属性 'config' => array ( 'left_delimiter' => "{#",'right_delimiter' => "#}",'template_dir' => APP_DIR . "/views/",'config_dir' => APP_DIR . "/views/conf/",'debugging' => false,'compile_dir' => 'D:/temp/runtime',) )

其中batman是我已经在index.PHP定义好的别名。

PHP;"> Yii::setPathOfAlias('batman',dirname(__FILE__)); Yii::import("batman.protected.vendors.*"); define('APP_DIR',dirname(__FILE__).'/protected/');

1.3,在protected/extensions/下面新建SmartyViewRender.PHP

PHP;"> _smarty = new Smarty(); // configure smarty if (is_array ( $this->config )) { foreach ( $this->config as $key => $value ) { if ($key {0} != '_') { // not setting semi-private properties $this->_smarty->$key = $value; } } } Yii::registerAutoloader('smartyAutoload'); } public function renderFile($context,$file,$data,$return) { foreach ($data as $key => $value) $this->_smarty->assign($key,$value); $return = $this->_smarty->fetch($file); if ($return) return $return; else echo $return; } }

1.4,验证

新建一个HelloController.PHP

PHP;"> render('world',array('content'=>'hello world')); } }

新建一个word.html

PHP;"> {#$content#}

二、CI框架+smarty模板

网上很多方法,将smarty作为一个普通的library,在使用的时候,controller代码类似于下面:

load->library('smarty/Ci_smarty','','smarty'); $this->smarty->assign("title","恭喜你smarty安装成功!"); $this->smarty->assign("body","欢迎使用smarty模板引擎"); $arr = array(1=>'zhang',2=>'xing',3=>'wang'); $this->smarty->assign("myarray",$arr); $this->smarty->display('index_2.html'); }

这种方法跟CI自带的使用模板的方法

代码如下:
load->view();
不和谐,而且要一系列的
代码如下:
smarty->assign();
语句,麻烦不说,还破坏了原本CI的简洁美,所以果断唾弃之。

那怎么保持CI加载view时的简洁美呢,答案就是覆盖Loader类的view()方法。好吧,let's begin。

2.1,条件:

到官网上现在CI框架和smarty模板。

2.2,确保CI已经能跑起来

将CI框架解压到网站跟目录下,先写一个不带smarty模板的controller输出“hello world”。

2.3,引入smarty

将smarty解压,将libs文件夹考到application/third_paty下面,并将libs重命名smarty,重命名取什么都ok了,这里就叫smarty吧。

2.4,覆盖loader类的view()方法

因为view()方法在Loader类里,所以我要覆盖Loader的view()方法

先看看$this->load->view()是怎么工作的?CI_Controller类的构造函数里有这么一行

代码如下:
load =& load_class('Loader','core');
load_class函数会先在application/core下面找config_item('subclass_prefix').Loader.PHP文件,找不到再到system/core下面找Loader.PHP。config_item('subclass_prefix')就是在配置文件里写的你要继承CI核心类的子类的前缀。我使用的是默认值'MY_'。找到文件后,require该文件,然后new MY_Loader(如果application/core/MY_Loader.PHP存在),或者是new Loader,赋值给$this->load。

在application/core下面新建一个MY_Loader.PHP文件

PHP;"> smarty = new Smarty (); // smarty 配置 $this->smarty->template_dir= APPPATH.'views'.DS;//smarty模板文件指向ci的views文件夹 $this->smarty->compile_dir = 'd:/temp/tpl_c/'; $this->smarty->config_dir = APPPATH.'libraries/smarty/configs/'; $this->smarty->cache_dir = 'd:/temp/cache'; $this->smarty->left_delimiter = '{#'; $this->smarty->right_delimiter = '#}'; } public function view($view,$vars = array(),$return = FALSE) { // check if view file exists $view .= config_item('templates_ext'); $file = APPPATH.'views'.DS.$view; if (! file_exists ( $file ) || realpath ( $file ) === false) { exit( __FILE__.' '.__LINE__."
View file {$file} does not exist,
{$file} => {$view}"); } // changed by simeng in order to use smarty debug foreach ( $vars as $key => $value ) { $this->smarty->assign ( $key,$value ); } // render or return if ($return) { ob_start (); } $this->smarty->display ( $view ); if ($return) { $res = ob_get_contents (); ob_end_clean (); return $res; } } }

我把template_ext配置成了".html",这样就ok了。我们来验证一下吧。

2.5,验证

在controller下面建一个home.PHP

'zhang',3=>'wang'); $data['myarray'] = $arr; $this->load->view('index_2',$data); } }

在views下面建一个index_2.html

PHP;"> smarty安装测试@H_<a href="/tag/502/" target="_blank" class="keywords">502</a>_106@ </head> <body> <h1>{#$title#}</h1> <p>{#$body#}</p> <ul> {#foreach from=$myarray item=v#} <li>{#$v#}</li> {#/foreach#} </ul> </body> </html> </pre> </div> <p>好了,可以试试你的成果了。</p> <p><h3>三、yaf框架+smarty模板</h3></p> <p>yaf是利用引导<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a>Bootstrap.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>来加载smarty。</p> <p>3.1,使用Bootstrap</p> <p>在index.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>中用 <div class="codetitle"><span><a style="CURSOR: pointer" data="8503" class="copybut" id="copybut8503" onclick="doCopy('code8503')"><U></U></a> <a href="/tag/daima/" target="_blank" class="keywords">代码</a>如下:</div><div class="codebody" id="code8503">$app->bootstrap()->run();</div></p> <p>引入Bootstrap.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a><a href="/tag/wenjian/" target="_blank" class="keywords">文件</a></p> <p>3.2,在application/Bootstrap.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a><a href="/tag/wenjian/" target="_blank" class="keywords">文件</a>中导入smarty。</p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initSmarty(Yaf_Dispatcher $dispatcher) { $smarty = new Smarty_Adapter(null,Yaf_Application::app()->getConfig()->smarty); Yaf_Dispatcher::getInstance()->setView($smarty); } } </pre> </div> <p>3.3,<a href="/tag/tianjia/" target="_blank" class="keywords">添加</a>Smarty_Adapter类</p> <p>将smarty解压后放到application/library<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a>夹下,<a href="/tag/zhongmingming/" target="_blank" class="keywords">重命名</a>为Smarty。在Smarty下新建Adapter.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>,确保Smarty.class.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>在Smarty/libs/下。Adapter.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a><a href="/tag/neirong/" target="_blank" class="keywords">内容</a>:</p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php Yaf_Loader::import( "Smarty/libs/Smarty.class.php"); Yaf_Loader::import( "Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php"); Yaf_Loader::import( "Smarty/libs/sysplugins/smarty_internal_templatelexer.php"); Yaf_Loader::import( "Smarty/libs/sysplugins/smarty_internal_templateparser.php"); Yaf_Loader::import( "Smarty/libs/sysplugins/smarty_internal_compilebase.php"); Yaf_Loader::import( "Smarty/libs/sysplugins/smarty_internal_write_file.php"); class Smarty_Adapter implements Yaf_View_Interface { /** * Smarty object * @var Smarty */ public $_smarty; /** * Constructor * * @param string $tmplPath * @param array $extraParams * @return void */ public function __construct($tmplPath = null,$extraParams = array()) { $this->_smarty = new Smarty; if (null !== $tmplPath) { $this->setScriptPath($tmplPath); } foreach ($extraParams as $key => $value) { $this->_smarty->$key = $value; } } /** * Return the template engine object * * @return Smarty */ public function getEngine() { return $this->_smarty; } /** * Set the path to the templates * * @param string $path The directory to set as the path. * @return void */ public function setScriptPath($path) { if (is_readable($path)) { $this->_smarty->template_dir = $path; return; } throw new Exception('Invalid path provided'); } /** * Retrieve the current template directory * * @return string */ public function getScriptPath() { return $this->_smarty->template_dir; } /** * Alias for setScriptPath * * @param string $path * @param string $prefix Unused * @return void */ public function setBasePath($path,$prefix = 'Zend_View') { return $this->setScriptPath($path); } /** * Alias for setScriptPath * * @param string $path * @param string $prefix Unused * @return void */ public function addBasePath($path,$prefix = 'Zend_View') { return $this->setScriptPath($path); } /** * Assign a variable to the template * * @param string $key The variable name. * @param mixed $val The variable value. * @return void */ public function __set($key,$val) { $this->_smarty->assign($key,$val); } /** * Allows testing with empty() and isset() to work * * @param string $key * @return boolean */ public function __isset($key) { return (null !== $this->_smarty->get_template_vars($key)); } /** * Allows unset() on object properties to work * * @param string $key * @return void */ public function __unset($key) { $this->_smarty->clear_assign($key); } /** * Assign variables to the template * * Allows setting a specific key to the specified value,OR passing * an array of key => value pairs to set en masse. * * @see __set() * @param string|array $spec The assignment strategy to use (key or * array of key => value pairs) * @param mixed $value (Optional) If assigning a named variable,* use this as the value. * @return void */ public function assign($spec,$value = null) { if (is_array($spec)) { $this->_smarty->assign($spec); return; } $this->_smarty->assign($spec,$value); } /** * Clear all assigned variables * * Clears all variables assigned to Zend_View either via * {@link assign()} or property overloading * ({@link __get()}/{@link __set()}). * * @return void */ public function clearVars() { $this->_smarty->clear_all_assign(); } /** * Processes a template and returns the output. * * @param string $name The template to process. * @return string The output. */ public function render($name,$value = NULL) { return $this->_smarty->fetch($name); } public function display($name,$value = NULL) { echo $this->_smarty->fetch($name); } } </pre> </div> <p>3.4,smarty<a href="/tag/peizhiwenjian/" target="_blank" class="keywords">配置文件</a>。</p> <p>再来看看我们的conf/application.ini<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a></p> <div class="jb51code"> <pre class="brush:xhtml;"> [common] application.directory = APP_PATH "/application" application.dispatcher.catchException = TRUE application.view.ext="tpl" [smarty : common] ;configures for smarty smarty.left_delimiter = "{#" smarty.right_delimiter = "#}" smarty.template_dir = APP_PATH "/application/views/" smarty.compile_dir = '/data1/www/cache/' smarty.cache_dir = '/data1/www/cache/' [product : smarty] </pre> </div> <p>3.5,验证</p> <p>新建一个controller,<a href="/tag/tianjia/" target="_blank" class="keywords">添加</a><a href="/tag/fangfa/" target="_blank" class="keywords">方法</a>:</p> <div class="jb51code"> <pre class="brush:php;"> public function twoAction() { $this->getView()->assign('content','hello World'); } </pre> </div> <p>新建一个模板two.tpl</p> <div class="jb51code"> <pre class="brush:xhtml;"> <html> <head> <title>A Smarty Adapter Example@H_<a href="/tag/502/" target="_blank" class="keywords">502</a>_106@ </head> <body> {#$content#} </body> </html> </pre> </div> <p>希望本文所述对大家<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>程序设计有所帮助。</p></div> <div class="topcard-tags"><a href="/tag/CI/" class="tag_link" target="_blank">CI</a><a href="/tag/yaf/" class="tag_link" target="_blank">yaf</a><a href="/tag/pyaf/" class="tag_link" target="_blank">yaf</a><a href="/tag/yii/" class="tag_link" target="_blank">yii</a><a href="/tag/kuangjia/" class="tag_link" target="_blank">框架</a><a href="/tag/kuangjiap/" class="tag_link" target="_blank">框架</a><a href="/tag/pkuangjia/" class="tag_link" target="_blank">框架</a><a href="/tag/moban/" class="tag_link" target="_blank">模板</a><a href="/tag/mobanp/" class="tag_link" target="_blank">模板</a><a href="/tag/pmoban/" class="tag_link" target="_blank">模板</a></div> <ul class="list-group"> <li class="list-group-item"><a href="/php/20632.html" title="WordPress中自定义后台管理界面配色方案的小技巧">上一篇:WordPress中自定义后台管理界面配色</a><a href="/php/20630.html" title="详解WordPress中创建和添加过滤器的相关PHP函数" class="text-muted pull-right">下一篇:详解WordPress中创建和添加过滤器的</a> </li> </ul> </div> </div> </div> <!-- row end --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4605373693034661" data-ad-slot="9144498553"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> </div> </div> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <div class="title"><h1>猜你在找的PHP相关文章</h1></div> <div class="list_con"> <a href="/php/997740.html" title="Hessian通讯协议【附PHP源代码】"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/361df348b2385424b031f281e9807f35.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Hessian通讯协议【附PHP源代码】</div> <div class="summary">Hessian开源的远程通讯,采用二进制 RPC的协议,基于 HTTP 传输。可以实现PHP调用Java,Pyt...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997739.html" title="初识Mongodb总结"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/b4d39ef6acdce4fc3ef2fe713961a4c2.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb总结</div> <div class="summary">初识Mongodb的一些总结,在Mac Os X下真实搭建mongodb环境,以及分享个Mongodb管理工具,学习...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997738.html" title="初识Mongodb之[CURD]-PHP版"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/d009a8111c246e74506457f4b9a3356b.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb之[CURD]-PHP版</div> <div class="summary">边看边操作,这样才能记得牢,实践是检验真理的唯一标准.光看不练假把式,光练不看傻把式,边看...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997665.html" title="php学习日志 - echo&print"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/daa4210b68d9838740e9ea77a21307fa.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">php学习日志 - echo&print</div> <div class="summary">在php中,结果输出一共有两种方式:echo和print,下面将对两种方式做一个比较。 echo与pri...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/eb187c62ac0c80d6e2af301e5b85d7cf.jpg" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">The mbstring extension is missing. Please check your PHP configuration错误及解决方法</div> <div class="summary">在安装好wampServer后,一直没有使用phpMyAdmin,今天用了一下,phpMyAdmin显示错误:The m...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><div class="list_con"> <a href="/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/3dba7c0e337113c18e0d271e31375f92.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常</div> <div class="summary">以前用Windows Live Writer写日志都好好的,前几天用写完日志,点击发布,突然弹出意外错误...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统"><div class="title">在PHP项目中使用Standford Moss代码查重系统</div> <div class="summary">Standford Moss 系统是斯坦福大学大名鼎鼎的代码查重系统,它可以查出哪些同学提交的代码是...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997490.html" title="Windows下PHP安全环境的搭建"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-18/10/ae3043a3f014e5fde5c29d0449149db0.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Windows下PHP安全环境的搭建</div> <div class="summary">笔者一直在Windows环境下搭建PHP的运行环境,大大小小的运行环境用过不少,从开始的WAMP到...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息"><div class="title">ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息</div> <div class="summary">在作业管理系统中,学生登陆到个人中心后可以通过左侧的菜单查看自己已经提交的作业和未提...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997488.html" title="ThinkPHP5项目目录规划实践"><div class="title">ThinkPHP5项目目录规划实践</div> <div class="summary">ThinkPHP5安装后(或者下载后的压缩文件解压后)可以看到下面的目录结构: 一般的信息管理...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div> </div> </div> </div> <!-- left end--> <!-- right --> <div class="col-sm-12 col-md-12 col-lg-3"> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">编程分类</label> <div class="cate mt-20"><a href="/php/" title="PHP">PHP</a><a href="/java/" title="Java">Java</a><a href="/javase/" title="Java SE">Java SE</a><a href="/python/" title="Python">Python</a><a href="/csharp/" title="C#">C#</a><a href="/c/" title="C&C++">C&C++</a><a href="/ruby/" title="Ruby">Ruby</a><a href="/vb/" title="VB">VB</a><a href="/aspnet/" title="asp.Net">asp.Net</a><a href="/go/" title="Go">Go</a><a href="/Perl/" title="Perl">Perl</a><a href="/netty/" title="netty">netty</a><a href="/django/" title="Django">Django</a><a href="/delphi/" title="Delphi">Delphi</a><a href="/jsp/" title="Jsp">Jsp</a><a href="/netcore/" title=".NET Core">.NET Core</a><a href="/spring/" title="Spring">Spring</a><a href="/flask/" title="Flask">Flask</a><a href="/springboot/" title="Springboot">Springboot</a><a href="/springmvc/" title="SpringMVC">SpringMVC</a><a href="/lua/" title="Lua">Lua</a><a href="/laravel/" title="Laravel">Laravel</a><a href="/mybatis/" title="Mybatis">Mybatis</a><a href="/asp/" title="Asp">Asp</a><a href="/groovy/" title="Groovy">Groovy</a><a href="/thinkphp/" title="ThinkPHP">ThinkPHP</a><a href="/yii/" title="Yii">Yii</a><a href="/swoole/" title="swoole">swoole</a><div class="clearfix"></div> </div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">最新文章</label> <ul class="n-list"><li><a href="/php/997740.html" title="Hessian通讯协议【附PHP源代码】" target="_blank">• Hessian通讯协议【附PHP源</a></li> <li><a href="/php/997739.html" title="初识Mongodb总结" target="_blank">• 初识Mongodb总结</a></li> <li><a href="/php/997738.html" title="初识Mongodb之[CURD]-PHP版" target="_blank">• 初识Mongodb之[CURD]-PHP版</a></li> <li><a href="/php/997665.html" title="php学习日志 - echo&print" target="_blank">• php学习日志 - echo&p</a></li> <li><a href="/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法" target="_blank">• The mbstring extension i</a></li> <li><a href="/php/997663.html" title="php学习日志 - php变量" target="_blank">• php学习日志 - php变量</a></li> <li><a href="/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常" target="_blank">• 解决Windows Live Writer错</a></li> <li><a href="/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统" target="_blank">• 在PHP项目中使用Standford</a></li> <li><a href="/php/997490.html" title="Windows下PHP安全环境的搭建" target="_blank">• Windows下PHP安全环境的搭</a></li> <li><a href="/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息" target="_blank">• ThinkPHP5作业管理系统中处</a></li> </ul> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">热门标签 <span class="pull-right tx-12"> <a href="/all" target="_blank">更多 ►</a></span> </label> <div class="topcard-tags"><a href="/tag/wenjianshijian/" title="文件时间" target="_blank">文件时间</a><a href="/tag/pythonm/" title="pythonm" target="_blank">pythonm</a><a href="/tag/xiangdengxing/" title="相等性" target="_blank">相等性</a><a href="/tag/PHPWarning/" title="PHP Warning" target="_blank">PHP Warning</a><a href="/tag/shijianwenti/" title="时间问题" target="_blank">时间问题</a><a href="/tag/wentijiejue/" title="问题解决" target="_blank">问题解决</a><a href="/tag/pcntlsignal/" title="pcntl_signal()" target="_blank">pcntl_signal</a><a href="/tag/caiyangdian/" title="采样点" target="_blank">采样点</a><a href="/tag/wavmokuai/" title="wav模块" target="_blank">wav模块</a><a href="/tag/dongtaiwenben/" title="动态文本" target="_blank">动态文本</a><a href="/tag/diaoyongpinlvxianzhi/" title="调用频率限制" target="_blank">调用频率限制</a><a href="/tag/duiwaibaolu/" title="对外暴露" target="_blank">对外暴露</a><a href="/tag/duogefangwenqingqiu/" title="多个访问请求" target="_blank">多个访问请求</a><a href="/tag/gengxinshujubiao/" title="更新数据表" target="_blank">更新数据表</a><a href="/tag/moxingjiegou/" title="模型结构" target="_blank">模型结构</a><a href="/tag/typefangfa/" title="type()方法" target="_blank">type()方法</a><a href="/tag/bijiaosudu/" title="比较速度" target="_blank">比较速度</a><a href="/tag/shouxieti/" title="手写体" target="_blank">手写体</a><a href="/tag/sobelsuanzi/" title="sobel算子" target="_blank">sobel算子</a><a href="/tag/baocunmoxing/" title="保存模型" target="_blank">保存模型</a><a href="/tag/Imagelei/" title="Image类" target="_blank">Image类</a><a href="/tag/nnConv2d/" title="nn.Conv2d" target="_blank">nn.Conv2d</a><a href="/tag/pytorch10/" title="pytorch1.0" target="_blank">pytorch1.0</a><a href="/tag/kaggle/" title="kaggle" target="_blank">kaggle</a><a href="/tag/DCGAN/" title="DCGAN" target="_blank">DCGAN</a><a href="/tag/jiaobingbi/" title="交并比" target="_blank">交并比</a><a href="/tag/rangeyongfa/" title="range()用法" target="_blank">range()用法</a><a href="/tag/dayinmoxing/" title="打印模型" target="_blank">打印模型</a><a href="/tag/fanjuanji/" title="反卷积" target="_blank">反卷积</a><a href="/tag/juanji/" title="卷积" target="_blank">卷积</a></div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> </div> <!-- right end --> </div> </div> <footer id="footer"> <div class="container"> <div class="row hidden-xs"> <dl class="col-sm-6 site-link"> <dt>最近更新</dt><dd><a href="/win11/1005688.html" title="重装系统软件怎么保留文件" target="_blank">· 重装系统软件怎么保留文件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005687.html" title="重装系统保留软件:简单教程" target="_blank">· 重装系统保留软件:简单教程</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005686.html" title="如何重装系统并保留软件" target="_blank">· 如何重装系统并保留软件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005685.html" title="如何重装系统软件并保留数据" target="_blank">· 如何重装系统软件并保留数据</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005684.html" title="如何重装系统软件并保留网络设置" target="_blank">· 如何重装系统软件并保留网络设置</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005683.html" title="如何重装台式电脑系统" target="_blank">· 如何重装台式电脑系统</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005682.html" title="如何重装系统并保留原有软件" target="_blank">· 如何重装系统并保留原有软件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005681.html" title="如何重装Lenovo电脑系统" target="_blank">· 如何重装Lenovo电脑系统</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005680.html" title="重装系统保留数据:轻松恢复系统,保留重要文件" target="_blank">· 重装系统保留数据:轻松恢复系统,保留重要文件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005679.html" title="无法正常开机,如何重装系统" target="_blank">· 无法正常开机,如何重装系统</a><span class="text-muted pull-right">12-02</span></dd> </dl> <dl class="col-sm-4 site-link"> <dt>好站推荐</dt><dd> <a href="https://www.runoob.com" title="菜鸟教程(www.runoob.com)提供了编程的基础技术教程, 介绍了HTML、CSS、Javascript、Python,Java,Ruby,C,PHP , MySQL等各种编程语言的基础知识。 同时本站中也提供了大量的在线实例,通过实例,您可以更好的学习编程。" target="_blank">菜鸟教程</a></dd><dd> <a href="https://www.jb51.cc" title="编程之家(www.jb51.cc)是成立于2017年面向全球中文开发者的技术内容分享平台。提供编程导航、编程问答、编程博文、编程百科、编程教程、编程工具、编程实例等开发者最需要的编程技术内容与开发工具支持,与你一起学习编程,相信编程改变未来!" target="_blank">编程之家</a></dd><dd> <a href="" title="前端之家 f2er.com 前端开发人员所需学习知识手册。" target="_blank">前端之家</a></dd></dl> <dl class="col-sm-2 site-link"> <dt>商务合作</dt> <dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=76874919&site=qq&menu=yes">联系我们</a></dd> </dl> </div> <div class="copyright"> Copyright © 2019 前端之家. 当前版本 V7.0.16<br> <span class="ml5">前端之家 版权所有 <a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">闽ICP备13020303号-10</a></span> </div> </div> </footer> <script type="text/javascript" src="/js/base.js"></script> </body> </html>