如何在python中更改surface3d的预定义选项

时间:2018-06-09 09:48:09

标签: python bokeh

我一直在研究一个项目,我决定使用这个函数/类来显示数据:

set qty=-1

:loop4weekends

set "separator1=-"
set "separator2=_"

echo >"%temp%\%~n0.vbs" s=DateAdd("d",%qty%,now)
echo>>"%temp%\%~n0.vbs" d=weekday(s)
echo>>"%temp%\%~n0.vbs" WScript.Echo year(s)^&_
echo>>"%temp%\%~n0.vbs"         right(100+month(s),2)^&_
echo>>"%temp%\%~n0.vbs"         right(100+day(s),2)^&_
echo>>"%temp%\%~n0.vbs"         d
for /f %%a in ('cscript //nologo "%temp%\%~n0.vbs"') do set result=%%a
del "%temp%\%~n0.vbs"

endlocal& set "YY=%result:~0,4%" & set "MM=%result:~4,2%" & set "DD=%result:~6,2%" & set "daynum=%result:~-1%"

:: if the daynum is a weekend then loop to get the friday
set "weekend="

if %daynum% EQU 1 set weekend=1&set "qty=-3"
if %daynum% EQU 7 set weekend=1&set "qty=-2"
if defined weekend goto :loop4weekends

set "day=%YY%%separator1%%MM%%separator1%%DD%"
set "day1=%YY%%separator2%%MM%%separator2%%DD%"

sqlcmd  -U %SQLServerUserName% -P %SQLServerPassword% -S %MachineIP% -Q "exec P_SP @companyFundIDs=N'',@inputDate=N''"  -d %ClientDB% -o "Fil_Trade_%day1%.csv" -s"," -W

ECHO CSV file has been generated successfully
pause

无论如何都要改变剧情的默认选项?还有一种方法可以添加新的参数,就像有额外的颜色一样。简单地修改代码对我来说不起作用。我没有JS工作经验。作为最终产品,我希望能够显示工具提示中定义的值。

1 个答案:

答案 0 :(得分:0)

经过多次重新加载后,代码开始按预期工作。因此,对于任何想要改变的人,请在代码选项中进行更改。