2019年11月20日

Glade -A User Interface Designer

Glade -A User Interface Designer
Python GUI


1.
01.png
2.
02.png
3.
03.png
4.
04.png
5.
05.png

posted by a23 at 10:58| Comment(0) | Python

2019年09月29日

演算子


#from decimal import Decimal
from decimal import *

print(Decimal("123.45678").quantize(Decimal("0"), rounding=ROUND_HALF_UP))
print(Decimal("123.45678").quantize(Decimal("0.1"), rounding=ROUND_HALF_UP))
print(Decimal("123.45678").quantize(Decimal("0.01"), rounding=ROUND_HALF_UP))

print(Decimal("0.1").quantize(Decimal("0"), rounding=ROUND_HALF_UP))
print(Decimal("0.5").quantize(Decimal("0"), rounding=ROUND_HALF_UP))


f1 = Decimal("0.1")
f2 = Decimal("0.2")

print(f1 + f2)
f1 = Decimal(0.1)
f2 = Decimal(0.2)

print(f1 + f2)

f1 = 0.1
f2 = 0.2

print(f1 + f2)

price = 120
#tax=Decimal(0.00001)
#tax = price * 0.08
i = input('値を入力してください:')
#tax = float( price *= i )
#tax = (price *= i)

#i2 = float(i)
#x = 1000
#print(str(x)+" です")
#print(print+tax)

#tax=Decimal(i)
#tax=float(i)
tax=int(i)
print(price,' * ',tax)
#print(tax)
print('anser:', price * tax)

#from decimal import Decimal
from decimal import *

print(Decimal("123.45678").quantize(Decimal("0"), rounding=ROUND_HALF_UP))
print(Decimal("123.45678").quantize(Decimal("0.1"), rounding=ROUND_HALF_UP))
print(Decimal("123.45678").quantize(Decimal("0.01"), rounding=ROUND_HALF_UP))

print(Decimal("0.1").quantize(Decimal("0"), rounding=ROUND_HALF_UP))
print(Decimal("0.5").quantize(Decimal("0"), rounding=ROUND_HALF_UP))


f1 = Decimal("0.1")
f2 = Decimal("0.2")

print(f1 + f2)
f1 = Decimal(0.1)
f2 = Decimal(0.2)

print(f1 + f2)

f1 = 0.1
f2 = 0.2

print(f1 + f2)

price = 120
#tax=Decimal(0.00001)
#tax = price * 0.08
i = input('値を入力してください:')
#tax = float( price *= i )
#tax = (price *= i)

#i2 = float(i)
#x = 1000
#print(str(x)+" です")
#print(print+tax)

#tax=Decimal(i)
#tax=float(i)
tax=int(i)
print(price,'  *  ',tax)
#print(tax)
print('anser:', price * tax)
posted by a23 at 09:37| Comment(0) | Python

2019年09月24日

windows 10 pip python 3.7

windows10 python 3.7  pathが通っている状態で、

python -m pip install -U pip
01.png



python -m pip install -U flask
02.png


python -m pip install -U django

03.png
  WARNING: The script django-admin.exe is installed in 'C:\Users\w64py\AppData\L
ocal\Programs\Python\Python37-32\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
Successfully installed django-2.2.5 pytz-2019.2 sqlparse-0.3.0
------------------------------------------------------------------------
警告:スクリプトdjango-admin.exeは 'C:\ Users \ w64py \ AppData \ Lにインストールされます
PATHにないocal \ Programs \ Python \ Python37-32 \ Scripts '
   このディレクトリをPATHに追加することを検討してください。または、この警告を抑制する場合は、
ing、-no-warn-script-locationを使用します。
django-2.2.5 pytz-2019.2 sqlparse-0.3.0が正常にインストールされました
------------------------------------------------------------------------



posted by a23 at 09:16| Comment(0) | Python