encoding examples
This commit is contained in:
parent
b0f113fa67
commit
74793c5a93
2
python-temel/f.write.with.open.py
Normal file
2
python-temel/f.write.with.open.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
with open('test.txt', 'w', encoding='utf-8') as f:
|
||||
f.write('ağrı dağı')
|
3
python-temel/import.locale.py
Normal file
3
python-temel/import.locale.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
import locale
|
||||
|
||||
print(locale.getpreferredencoding(False))
|
|
@ -1,4 +1 @@
|
|||
a = 10
|
||||
b = 20
|
||||
c = a + b
|
||||
print(c)
|
||||
ağrı dağı
|
Loading…
Reference in New Issue
Block a user