小程序黑体
<html>
<HEAD>
<TITLE>for的高级运用</TITLE>
</HEAD>
<BODY>
<?
/*
** 打印必要的说明文字
*/
print("<B>距离星期一还有几天?</B>\n");
print("<OL>\n");
for($currentDate = date("U"); //定义$currentDate时间格式
date("l", $currentDate) != "Monday"; //判断是不是当前系统时间是Monday
$currentDate += (60 * 60 * 24)) //当前时间加上1天
{
/*
** 打印时间名称
*/
print("<LI>" . date("l", $currentDate) . "\n");
}
print("</OL>\n");
?>
</BODY>
</HTML>
⑵ 程序开发中的linter是什么意思
linter 是 一类 小程序 的总称,它不像编译器程序那么大,它可以用来检查程序的 文体,语句 的 语法,句法错误,并即时标注和指出来(例如,把声明了但没使用的多余变量指出来,把错误语句 变成黑体), 是程序开发的辅助工具。
最早的unix 系统就有 lint. 现在这个词 linter 可能源于它。
例如: 用于 Python 的 flake8; 用于 javaScript 的 jshint ; CSS 的 csslint; Ruby 的 ruby -wc 它们都属 linter。
⑶ 手机端的英文字体用什么
做移动UI设计的设计师肯定都知道,移动客户端的界面上做效果的时候提前找所用的字体,特别注意在windows下设计的字体和实际UI界面上显示的效果很大的差别。
项目开始时,设计师可以提前和开发沟通好,就是告诉开发字体和字间距之类的需要自定义,请程序提前做好“准备”(一般字体和字的效果程序都是可以提前封装后,整个项目都可以导出自定义),如果提前沟通,这样会提高开发和设计的UI界面的效率。确实是这样啊。特别是刚进入APP UI 界面设计的设计师,容易犯的一些错误!
Heiti SC:黑体-简,黑体-简的英文名称为Heiti SC
Heiti:黑体的拼音,SC代表简体中文(Simplified Chinese),是Mac OS X Snow Leopard(版本10.6)包含的简体中文字型,也是iPhone OS 3.0(版本4.0后改名为iOS)及iPod nano第五代以来的预设简体中文字型。
黑体-简系:为黑体,取代华文黑体成为Mac OS X Snow Leopard的预设简体中文字型。在过去,华文黑体是Mac OS X的预设简体中文字型,因此以前并没有黑体-简。
黑体-简:是全新的字型,与黑体-繁同以华文黑体为基础开发,成为Mac OS X Snow Leopard与iPhone OS 3.0(版本4.0后改名为iOS)之后内建并同时为预设的简体中文字型。虽与华文黑体为两套字型,但差异微小,仅排列上有差距,笔画的差距也十分微小。包含“细体”与“中黑”,黑体-简与黑体-繁皆使用.ttc(TrueType Collection)格式,可以在单一档案包含多套字型。其中,黑体-简与黑体-繁的细体在/System/Library/Fonts /STHeiti Light.ttc,黑体-简与黑体-繁的中黑在/Library/Fonts/STHeiti Medium.ttc。
在ios中默认字体分为三类:
第一类:STHeiti-Light.ttc (黑体-简与黑体-繁的细体)和 STHeiti-Medium.ttc(黑体-简与黑体-繁的中黑) 代表的是中文字体,常用的方正黑体简体
第二类:_H_Helvetica.ttc 和 _H_HelveticaNeue.ttc 代表的是英文以及数字字体,常用的字体Helvetica
第三类:LockClock.ttf 代表的是锁屏时间字体
⑷ java问题
这个是程序的入口参数,举个例子你很快就明白了。例如你写了一个java源文件,名字叫 Test.java
那么你首先在命令行下输入 javac Test.java
然后输入java Test
来运行是吧。
如果你想要给程序传入一些参数,就这样运行
java Test 1 15
然后呢1和15就是args[]这个数组里的内容了。这个叫入口参数,如果你不写,args[]就没有内容了。
当然你如果写了java Test 1 15
这时args[0]就是1,args[1]就是15。你可以写个小程序试一试。然后for循环输出一下args的内容。就理解透彻了。
另外这个不一定这么写也行,也可以写成argv[],李兴华视频里就这么写的。没事。
⑸ 北京协和有痕植发可靠吗。北京有痕植发永久吗。
这些都不太清楚,建议到 头发多网 看看吧,至少那儿信息全面
⑹ C# 。。100分求高手弄一个简单的小程序。。。
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Reflection;
namespace DataOutAndIn
{
/// <summary>
/// OutPutExcel 导出为EXCEL
/// </summary>
public class OutPutExcel
{
private Excel.Application oXL;
private Excel._Workbook oWB;
private Excel._Worksheet oSheet;
private Excel.Range oRng;
private System.Data.DataTable dt;
private System.Windows.Forms.SaveFileDialog SFD = new SaveFileDialog();
public OutPutExcel()
{
this.dt = new System.Data.DataTable();
}
/// <summary>
/// 快速导出Excel,直接在保存对话框中设好你要保存的路径和名字即可
/// </summary>
/// <param name="dtDataTable">用户指定的数据表</param>
public void FastOutPutExcel(System.Data.DataTable dtDataTable)
{
this.dt = dtDataTable;
try
{
this.SFD.Filter =" Excel文件 (*.xls)|*.xls";
this.SFD.FilterIndex = 1;
this.SFD.FileName = this.dt.TableName.ToString()+".xls";
this.SFD.RestoreDirectory = false;
if(this.SFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
#region///////////////////////////////////2007.05.23从条件外移入/////////////////////////////////////
//启动Excel,并获取应用程序实例
try
{
oXL = new Excel.Application();
}
catch(Exception exp)
{
MessageBox.Show(exp.Message);
}
oXL.Visible = false;
//Get a new workbook.
oWB = (Excel._Workbook)(oXL.Workbooks.Add( Missing.Value ));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
//把表的列名加载进excel的第一行
for(int i = 0;i<this.dt.Columns.Count;i++)
{
oSheet.Cells[1,i+1] = this.dt.Columns[i].ColumnName.ToString();
}
//设置第一行标题的字体格式为黑体居中
// oSheet.get_Range("A1", "D1").Font.Bold = true;
// oSheet.get_Range("A1", "D1").VerticalAlignment = Excel.XlVAlign.xlVAlignCenter;
//
//创建一个二维数组把表中的数据读进来等待进行向excel加载数据的操作
string[,] strCellText = new string[this.dt.Rows.Count,this.dt.Columns.Count];
try
{
for(int i = 0;i < this.dt.Rows.Count;i++)
{
for(int j = 0;j < this.dt.Columns.Count;j++)
{
strCellText[i,j] = this.dt.Rows[i][j].ToString();
}
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
string ExcelColumLable = this.GetCellNameLable((int)(this.dt.Columns.Count/26))+this.GetCellNameLable((int)(this.dt.Columns.Count%26));
string max = ExcelColumLable+"1";
int row = this.dt.Rows.Count +1;
ExcelColumLable += row.ToString();
#endregion///////////////////////////////////////////////////////////////////////////////////////////////
oSheet.get_Range("A2", ExcelColumLable).Value2 = strCellText;
oRng = oSheet.get_Range("A1", max);
oRng.EntireColumn.AutoFit();
oXL.Visible = false;
oXL.UserControl = true;
oSheet.SaveAs(this.SFD.FileName,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value);
try
{
oXL.Workbooks.Close();
oXL.Quit();
oXL = null;
}
catch(Exception exp)
{
MessageBox.Show(exp.Message);
}
}
// else
// {
// try
// {
// oXL.Workbooks.Close();
// oXL.Quit();
// oXL = null;
// }
// catch(Exception exp)
// {
// MessageBox.Show(exp.Message+"测试");
// }
// }
}
catch( Exception theException )
{
String errorMessage;
errorMessage = "Error: ";
errorMessage = String.Concat( errorMessage, theException.Message );
errorMessage = String.Concat( errorMessage, " Line: " );
errorMessage = String.Concat( errorMessage, theException.Source );
MessageBox.Show( errorMessage, "Error" );
}
}
/// <summary>
/// 快速导出Excel,直接在保存对话框中设好你要保存的路径和名字即可,最多只导出二十六列以内的表
/// </summary>
/// <param name="dtDataTable">用户指定的数据表</param>
public void FastOutPutExcelIn26Colunms(System.Data.DataTable dtDataTable)
{
this.dt = dtDataTable;
try
{
this.SFD.Filter =" Excel文件 (*.xls)|*.xls";
this.SFD.FilterIndex = 1;
this.SFD.FileName = this.dt.TableName.ToString()+".xls";
this.SFD.RestoreDirectory = false;
if(this.SFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
#region/////////////////////////////////////2007.05.23从条件语句外移入/////////////////////////////////////////////////
//启动Excel并获取应用程序实例
try
{
oXL = new Excel.Application();
}
catch(Exception exp)
{
MessageBox.Show(exp.Message);
}
oXL.Visible = false;
//Get a new workbook.
oWB = (Excel._Workbook)(oXL.Workbooks.Add( Missing.Value ));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
//把表的列名加载进excel的第一行
for(int i = 0;i<this.dt.Columns.Count;i++)
{
oSheet.Cells[1,i+1] = this.dt.Columns[i].ColumnName.ToString();
}
//创建一个二维数组把表中的数据读进来等待进行向excel加载数据的操作
string[,] strCellText = new string[this.dt.Rows.Count,this.dt.Columns.Count];
try
{
for(int i = 0;i < this.dt.Rows.Count;i++)
{
for(int j = 0;j < this.dt.Columns.Count;j++)
{
strCellText[i,j] = this.dt.Rows[i][j].ToString();
}
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
string ExcelColumLable = this.GetCellNameLable((int)(this.dt.Columns.Count%26));
string max = ExcelColumLable+"1";
int row = this.dt.Rows.Count +1;
ExcelColumLable += row.ToString();
#endregion/////////////////////////////////////////////////////////////////////////////////////////
oSheet.get_Range("A2", ExcelColumLable).Value2 = strCellText;
oRng = oSheet.get_Range("A1", max);
oRng.EntireColumn.AutoFit();
oXL.Visible = false;
oXL.UserControl = true;
oSheet.SaveAs(this.SFD.FileName,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value);
try
{
oXL.Workbooks.Close();
oXL.Quit();
oXL = null;
}
catch(Exception exp)
{
MessageBox.Show(exp.Message);
}
}
// else
// {
// try
// {
// oXL.Workbooks.Close();
// oXL.Quit();
// oXL = null;
// }
// catch(Exception exp)
// {
// MessageBox.Show(exp.Message);
// }
// }
}
catch( Exception theException )
{
String errorMessage;
errorMessage = "Error: ";
errorMessage = String.Concat( errorMessage, theException.Message );
errorMessage = String.Concat( errorMessage, " Line: " );
errorMessage = String.Concat( errorMessage, theException.Source );
MessageBox.Show( errorMessage, "Error" );
}
}
/// <summary>
/// 逐条导出Excel,它将打开一个Excel表格并把指定的表内数据导出到这个Excel进程中来
/// </summary>
/// <param name="dtDataTable">用户指定的数据表</param>
public void SlowOutPutExcel(System.Data.DataTable dtDataTable)
{
this.dt = dtDataTable;
try
{
//启动EXCEL,并获取应用程序实例
oXL = new Excel.Application();
oXL.Visible = true;
//Get a new workbook.
oWB = (Excel._Workbook)(oXL.Workbooks.Add( Missing.Value ));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
//把表的列名加载进excel的第一行
for(int i = 0;i<this.dt.Columns.Count;i++)
{
oSheet.Cells[1,i+1] = this.dt.Columns[i].ColumnName.ToString();
}
//设置第一行标题的字体格式为黑体居中
// oSheet.get_Range("A1", "D1").Font.Bold = true;
// oSheet.get_Range("A1", "D1").VerticalAlignment = Excel.XlVAlign.xlVAlignCenter;
try
{
for(int i = 0;i < this.dt.Rows.Count;i++)
{
for(int j = 0;j < this.dt.Columns.Count;j++)
{
oSheet.Cells[i+2,j+1] = this.dt.Rows[i][j].ToString();
}
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
string ExcelColumLable = this.GetCellNameLable((int)(this.dt.Columns.Count/26))+this.GetCellNameLable((int)(this.dt.Columns.Count%26));
string max = ExcelColumLable+"1";
oRng = oSheet.get_Range("A1", max);
oRng.EntireColumn.AutoFit();
oXL.Visible = true;
oXL.UserControl = true;
}
catch( Exception theException )
{
String errorMessage;
errorMessage = "Error: ";
errorMessage = String.Concat( errorMessage, theException.Message );
errorMessage = String.Concat( errorMessage, " Line: " );
errorMessage = String.Concat( errorMessage, theException.Source );
MessageBox.Show( errorMessage, "Error" );
}
}
private string GetCellNameLable(int index)
{
string lable = "";
switch(index)
{
case 1:
lable = "A";
break;
case 2:
lable = "B";
break;
case 3:
lable = "C";
break;
case 4:
lable = "D";
break;
case 5:
lable = "E";
break;
case 6:
lable = "F";
break;
case 7:
lable = "G";
break;
case 8:
lable = "H";
break;
case 9:
lable = "I";
break;
case 10:
lable = "J";
break;
case 11:
lable = "K";
break;
case 12:
lable = "L";
break;
case 13:
lable = "M";
break;
case 14:
lable = "N";
break;
case 15:
lable = "O";
break;
case 16:
lable = "P";
break;
case 17:
lable = "Q";
break;
case 18:
lable = "R";
break;
case 19:
lable = "S";
break;
case 20:
lable = "T";
break;
case 21:
lable = "U";
break;
case 22:
lable = "V";
break;
case 23:
lable = "W";
break;
case 24:
lable = "X";
break;
case 25:
lable = "Y";
break;
case 0:
lable = "Z";
break;
default :
break;
}
return lable;
}
}
}
-------------------------------------------------------------
本程序在进行10到26进制转换时,做得不好.你可以进行修改使用.
不过,现在这个,在上百列之内是不会有问题的.
你可能在使用时需要引用excel和office.
如果想要导入到数据库中去.一般的思路是先把excel当成一个数据库进行查询,再把查询到的数据写入目标库.这个过程比导出简单多了.
⑺ 写一个Java小程序和html文件
用jsp可以吗?那个就相当于java+html
⑻ 微信小程序中如何使用苹方字体
需要把字体文抄件进行袭base64编码再进行引用;
小程序是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或者搜一下即可打开应用。也体现了“用完即走”的理念,用户不用关心是否安装太多应用的问题。应用将无处不在,随时可用,但又无需安装卸载。对于开发者而言,小程序开发门槛相对较低,难度不及APP,能够满足简单的基础应用,适合生活服务类线下商铺以及非刚需低频应用的转换。小程序能够实现消息通知、线下扫码、公众号关联等七大功能。其中,通过公众号关联,用户可以实现公众号与小程序之间相互跳转。由于小程序不存在入口。
⑼ VC++中,编写一个小程序,实现在屏幕窗口中向左滚动显示一行文字
去书店抄个,现在没 时间写
⑽ 微信小程序怎样设置字体为微软雅黑
淘宝的编辑框是支持微软雅黑字体的,您看下代码是不是写错了,建议用英文 font-family:microsoft yahei 这种代码