Shell script printing parallelograms #!/bin/ bash
for ((i=1;i<= 9;i++))
do
for ((j=9;j>=i;j- -))
do
echo -n ” ”
done
for ((j=2;j<= i;j++)) do echo -n "*" done for ((j=1;j<
Shell script printing parallelograms #!/bin/ bash
for ((i=1;i<= 9;i++))
do
for ((j=9;j>=i;j- -))
do
echo -n ” ”
done
for ((j=2;j<= i;j++)) do echo -n "*" done for ((j=1;j<
The shell script prints the nine-nine-nine multiplication table #!/bin/bash
for i in {1..9}
do
for j in {1..9}
do
if [$j -le $i]
then
echo -n “${j}X${i}= $(($i*$j)) ”
fi
done
Shell script printing rectangle #!/bin/bash
for ((i=1;i<= 9;i++)) do for ((j=1;j<=9;j++)) do echo -n "*" done echo done
#!/bin/bash
for ((i=1;i<= 9;i++)) do for ((j=1;j<=9;j++)) do echo -n "*" done echo done
Shell script printing isosceles triangle #!/bin/bash
for ((i=1;i<= 9;i++))
do
for ((j=9;j>=i;j- -))
do
echo -n ” ”
done
for ((j=2;j<= i;j++)) do echo -n "*" done for ((j=1
The shell script prints a right-angled triangle #! /bin/ bash
for ((i=1;i<= 9;i++)) do for ((j=1;j<=$i;j++ )) do echo -n "*" done echo done
#! /bin/bash
for ((i=1;i<= 9;i++)) do for ((j=1;j<=$i;j++ )) do echo -n "*" done echo done
I wrote a very simple program that tells me the unicode value of some characters.
This is the program:
< /p> #!/usr/bin/env python3
# -*- coding: utf-8 -*-
characters = [u’T’, u’ב ‘, u’
The following code
# -*- coding: utf-8 -*-
x = (u ‘abc/αβγ’,)
print x
print x[0]
print unicode(x).encode(‘utf-8’)
print x[0]. encode(‘utf-8’) …Production:
(u’abc/αβγ’,)
abc/αβγ
(u’ab
See the answer in English> From which direction swift starts to read dictionaries? 1 one
Hello, I tried the print dictionary project in Xcode9. Like this:
var items = [“Bear”:”0″, “Glass”:”1″
Is there anyway to simulate the [NSString stringWithFormat:@”%p”,myVar] code with the new swift language?
For example:
let str = “A String”
println(” str value \(str) has address:? “)
When using Xcode 8 to run the project, you will find the following strange log output on the print station:
2016-09-19 10:43:44.001757 Demo[7100:171568] subsystem: com.apple.UIKit, category : HIDEv