- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想生成一个如下所示的绘图(输出两行),其中绘图的顶部是一个颠倒的下划线:output
相反,它在同一行上输出所有内容。我也不想使用 UNICODE。
public class Landscape {
String terrainString1;
String terrainString2;
Landscape(){
terrainString1="";
terrainString2="";
}
public void flat(int lengthOfFlatPortion){
for (int count=0; count<lengthOfFlatPortion; count++){
terrainString1+=" ";
terrainString2+="_";
}
}
public void hill(int lengthOfHillTop){
terrainString1=" ";
terrainString2="/";
for (int count=0; count<lengthOfHillTop; count++){
terrainString1+="_";
terrainString2+=" ";
}
terrainString1+=" ";
terrainString2+="\\";
}
public void print(){
System.out.println(terrainString1);
System.out.println(terrainString2);
}
}
public class Main {
public static void main(String[] args){
Landscape landscape = new Landscape();
landscape.flat(3);
landscape.hill(5);
landscape.flat(2);
landscape.hill(3);
landscape.flat(4);
landscape.hill(0);
landscape.flat(2);
landscape.print();
}
}
最佳答案
我不知道这是否违反了您的“无 Unicode”要求,但 ASCII 238 处的“Macron”字符 ( ´ ) 可以使用,具体取决于所选的字体。
__/¯¯\__/¯\_ // This is a test of Macron character
否则,如果可以使用 Unicode,则会有一个特定的“上划线”字符 ( ‾ ) (U+203E)。
__/‾‾\__/‾\_ // This is a test of overline character
关于java - 在Java中没有unicode的情况下颠倒绘制下划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59829281/
我正在尝试将我的本地功能分支 rebase 到名为“集成”的远程分支上。 所以我做了- git checkout feature git rebase integration 但在我的冲突解决编辑器中
我想使用模板来反转 XML 的不同序列; 例如 :
我正在尝试使用 Django 1.8 构建我的博客,但是我不知道如何订购这些博客。看图 我想在底部显示“最早”,在顶部显示“最新”。这是我的 index.html {% extends 'layout
我正在使用 socket.io 并向客户端发送一条消息,其中包含应附加到 div 的数据: socket.on('new data', function(data){ $('#containe
如果我遗漏了明显的内容,我深表歉意...... 我正在使用 rgl 绘制 3d 曲面。我的代码是 library(rgl) dem1 = read.table(file="file.txt",skip
如何使用纯 CSS 反转 div 子元素的顺序? 例如: 我要 A B C D 显示为: D C B A 我在 JSfiddle 上创建了一个演示: http://
是否反转中的属性 到 削弱或以任何方式影响搜索引擎索引页面的能力? 谢谢:) 最佳答案 我们不可能知道。搜索引擎可能有错误。 但从 HTML 规范的角度来看,不,属性顺序不影响含义。 关于html
我正在使用 CABasicAnimation 绘制我在数组中使用 CAShapeLayer 的所有 UIBezierPaths CAShapeLayer *shapeLayer = [CAShapeL
我在我的 iPhone 应用程序中使用 core plot 1.0。一切正常,图表绘制完美,但我面临一个奇怪的问题,即图表页面 (CPTPGraphHostingView) 上的所有控件都被镜像。 即
我是一名优秀的程序员,十分优秀!