文章目录:
- 1、35dir网址导航系统广告位怎么投放
- 2、python--怎么查看模块OS里listdir()函数的源代码,也就是怎么定义istdir()的代码?
- 3、35DIR分类目录无法获取网站缩略图怎么办
- 4、dos中有一个命令dir,谁能提供它的c源代码
- 5、急求通达信上能用的百万导弹或导弹发射的源码
35dir网址导航系统广告位怎么投放
绑你找了一下,百度 35dir网址导航系统 ,第一个就是,说的很详细,99a啦网址导航
python--怎么查看模块OS里listdir()函数的源代码,也就是怎么定义istdir()的代码?
在 python 官网下载 Gzipped source tar ball, 解压缩后, 会发现 Lib/os.py 文件这行代码
from posix import *
可是没有文件叫 posix.py 啊, 到底在那 ? 其实 posix module 是 builtin 的其中一分子,如下示范:
import sys
print sys.builtin_module_names
(*__builtin__*, *__main__*, *_ast*, *_codecs*, *_sre*, *_symtable*, *_warnings*, *_weakref*, *errno*, *exceptions*, *gc*, *imp*, *marshal*, *posix*, *pwd*, *signal*, *sys*, *thread*, *zipimport*)
所以要去 Modules 目录查找 c 代码, 你会看见 posixmodule.c, 打开它看见这行代码:
{"listdir", posix_listdir, METH_VARARGS, posix_listdir__doc__},
再寻找上面所得到的 posix_listdir method, 可以找到 listdir 源代码:
static PyObject *
posix_listdir(PyObject *self, PyObject *args)
{
/* XXX Should redo this putting the (now four) versions of opendir
in separate files instead of having them all here... */
#if defined(MS_WINDOWS) !defined(HAVE_OPENDIR)
PyObject *d, *v;
HANDLE hFindFile;
BOOL result;
35DIR分类目录无法获取网站缩略图怎么办
1、打开文件 source\module\prelink.php
查找代码:
PHP
function get_webthumb($web_pic) { global $options; if (!empty($web_pic)) { $strurl = $options['site_root'].$options['upload_dir'].'/'.$web_pic; } else { $strurl = $options['site_root'].'public/images/nopic.gif'; } return $strurl; }
修改为:
PHP
function get_webthumb($web_url) { return ''.$web_url; }
2、再将module\linkinfo.php文件内的:
get_webthumb($link['web_pic']);
替换成:get_webthumb($link['web_url']);
3、再将module\siteinfo.php文件内的:
get_webthumb($web['web_pic']);
替换成:get_webthumb($web['web_url']);
4、再将source\module\website.php文件内的(此处有两处修改)$row['web_pic'] = get_webthumb($row['web_pic']);
替换成:$row['web_pic'] = get_webthumb($row['web_url']);
利用myip的接口显示缩略图 图片是调用myip的 不会占用自己服务器空间 资源 速度也有保证 myip是很老的站了 相信不会轻易关闭 第二种是修复官方的失效自带下载缩略图功能
第二种方法、修改 \source\include\function.php
搜索save_to_local函数(大约在434行)
$imgurl = ''.$weburl;
替换成:
$imgurl = ''.$weburl;
保存即可,然后去后台-站点管理-下载图片 下载所有图片即可 大约每个图片100K 图片保存在\uploads\website目录下 (个人认为很占空间与带宽)
dos中有一个命令dir,谁能提供它的c源代码
MS-DOS 6.0 的源代码,汇编的。
dir.asm 。3764行(算最后的两个空行)
如果想看就向我要。
下面是开头几行注释:
page ,132
title DIR Internal Command
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;*** DIR.ASM - DIR internal command
comment % =================================================================
This module replaces TCMD1A.ASM. The old module was titled
"PART4 COMMAND Transient routines".
From residual documentation, I surmise that TCMD.ASM originally
contained the internal commands DIR, PAUSE, ERASE, TYPE, VOL, and
VER. The file seems to have been successively split:
TCMD - TCMD1,TCMD2 - TCMD1A,TCMD1B,TCMD2A,TCMD2B
TCMD1A.ASM contained only the DIR command.
急求通达信上能用的百万导弹或导弹发射的源码
{导弹发射DB-50 ,0 ,-10}
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
短期底部:=LLV(OPEN,30);
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:((3 * K) - (2 * D));
AA10:=MA(CLOSE,10);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
MA13:=MA(CLOSE,13);
VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);
VAR6:=MA(VAR5,3);
底部区间:IF((VAR6DB),20,0),COLORFFFF00;
STICKLINE((CROSS(J,K) AND (底部区间 = 20)),100,0,2,0),COLORFFFFFF;
买:STICKLINE((VAR6 = (0 - 15)),80,4.88,2,0),COLORFFFFFF;
VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));
VAR8:=(((CLOSE - VAR7) / VAR7) * 100);
VAR9:=((((REF(VAR8,1) (0 - 40)) AND (VAR8 REF(VAR8,1))) AND (REF(VAR8,1) REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) 2.5));
VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VARF:=(((HIGH + LOW) + CLOSE) / 3);
VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));
VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) (0 - 0.273));
VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) (0 - 0.125));
VAR13:=(VAR11 AND VAR12);
VAR14:=((((VARA = (0 - 45)) AND (VARA = (0 - 10))) AND (VARB = (0 - 15))) AND (VARC = (0 - 20)));
VAR15:=(COUNT(VAR14,1) = 1);
VAR16:=(VAR13 AND VAR15);
VAR1C:=EMA(CLOSE,34);
VAR1E:=MA((VAR1C * 0.82),5);
VAR20:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) (0 - 0.4));
VAR21:=HHV(HIGH,500);
VAR22:=LLV(LOW,500);
VAR23:=HHV(HIGH,250);
VAR24:=LLV(LOW,250);
VAR25:=HHV(HIGH,125);
VAR26:=LLV(LOW,125);
VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);
VAR2C:=VAR27;
VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) (0 - 2));
VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);
VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);
VAR44:=(CLOSE - REF(MA(CLOSE,20),11));
VAR45:=(((((((((((((CLOSE VAR1E) AND VAR20) AND (CLOSE VAR43)) OR (((CLOSE VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE VAR1E) AND (CLOSE VAR43))) OR (((CLOSE VAR1E) AND VAR20) AND (CLOSE VAR43))) OR (VAR20 AND (CLOSE VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 (0 - 1.5)))) OR (VAR20 AND (CLOSE VAR1E))) OR (VAR20 AND (VAR44 (0 - 1.5)))) OR (VAR31 AND (CLOSE VAR43))) OR ((CLOSE VAR2C) AND (VAR44 (0 - 1.5)))) OR ((CLOSE VAR1E) AND VAR31));
VAR4F:=(VAR11 AND VAR12);
VAR50:=((((VAR2 = (0 - 45)) AND (VAR2 = (0 - 7))) AND (VAR3 = (0 - 11))) AND (VAR4 = (0 - 14)));
VAR51:=(COUNT(VAR50,1) = 1);
VAR52:=(VAR4F AND VAR51);
VAR53:=(((((VAR20 AND (CLOSE VAR1E)) AND VAR31) AND (CLOSE VAR2C)) AND VAR45) AND VAR52);
VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR57:=REF(CLOSE,1);
VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);
VAR59:=(((HIGH + LOW) + CLOSE) / 3);
VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));
VAR5B:=((((((VAR54 = (0 - 15.8)) AND (VAR54 = (0 - 12.2))) AND (VAR55 = (0 - 20.8))) AND (VAR56 = (0 - 27.5))) AND (VAR58 = 11.7)) AND (VAR5A = (0 - 145)));
VAR62:=(REF(CLOSE,2) * 0.865);
VAR63:=(REF(CLOSE,13) * 0.772);
VAR64:=MIN(VAR62,VAR63);
VAR65:=((100 * VOL) / CAPITAL);
猎鹰出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) 0.03) AND ((SUM(VAR65,5) / 5) 1.8))),120,0),LINETHICK2;
MACD:(VAR6 * 5),COLORSTICK,LINETHICK2;
短买:STICKLINE((CROSS(K,D) AND (BB101)),70,0,2,0),COLORCC99FF;
{底部预警:STICKLINE(VAR6=0 AND VAR6=-10,0,-20,5,0),COLOR88B7EA;}
VAR61:=EMA(HHV(HIGH,500),21);
VAR71:=EMA(HHV(HIGH,250),21);
VAR81:=EMA(HHV(HIGH,90),21);
VAR91:=EMA(LLV(LOW,500),21);
VARA1:=EMA(LLV(LOW,250),21);
VARB1:=EMA(LLV(LOW,90),21);
VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR61 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);
VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR61 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21);
VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR61 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21);
VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21);
VAR101:=REF(LOW,1);
VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);
VAR121:=EMA(IF(((CLOSE * 1.35) = VARF1),(VAR111 * 10),(VAR111 / 10)),3);
VAR131:=LLV(LOW,30);
VAR141:=HHV(VAR121,30);
VAR151:=IF(MA(CLOSE,58),1,0);
VAR161:=((EMA(IF((LOW = VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);
VAR171:=((IF((VAR161 50),50,VAR161) / 20) * 15) ;
底部吸筹:STICKLINE((VAR171 0),0,VAR171,1,1),COLORFF00FF;
DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) 0)) AND (K = 49)),80,'--抄底');
DRAWTEXT(CROSS(90,J),108,'。逃'),COLORFFFF00;
DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'。低吸'),COLOR33FF33;
SG:=EMA(HHV(HIGH,1),8);
X1:=EMA(CLOSE,8);
X30:=((X1 REF(X1,1)) AND (CLOSE X1));
X31:=IF(((SG REF(SG,1)) OR X30),1,0);
全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) 0.085)) * 89);
DRAWTEXT((全仓出击 = 89),89,'--大胆杀入'),COLOR0066FF;
DRAWTEXT((CROSS(J,0) AND (VAR6 = (0 - 7))),80,'--导弹发射'),COLORFF00FF;
MA5:=MA(CLOSE,4);
X7:=EMA(EMA(EMA(HIGH,9),9),9);
海底:=(X7 * 0.92);
海底二:=(X7 * 0.933);
中轨道:=MA(CLOSE,2);
DRAWTEXT(((CROSS(中轨道,MA5) AND (LOW = 海底)) AND (CLOSE = 海底二)),25,'-底部'),COLOR0099FF;
500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96)
ebthumb($web['web_url']);4、再将source\module\website.php文件内的(此处有两处修改)$row['web_pic'] = get_webthumb($ro